Hook_theme in module not working I have a ctools plugin in a module folder. I have a theme call in the .module file:

function vimn_article_theme($existing, $type, $theme, $path) {
  dpm($path);
  return array(
      'vimn_article_template' =&gt; array(
      'template' =&gt; 'vimn_article_template',
      'path' =&gt; $path . '/templates',
      'variables' =&gt; array('title' =&gt; NULL),
    ),
  );
}


and then in the template file vimn_article_template.tpl.php

&lt;div class="test"&gt;&lt;div class="test" &lt;?php print $title; ?&gt;&gt;&lt;/div&gt;&lt;/div&gt;


What am I missing here to get this to work?

The module name is vimn_article
My ctools plugin in is plugins/content_types/prevnext.inc
my template file is located in vimn_article/templates
Your only defining the function, your not calling it.

   print theme('vimn_article_template', $vars);


Think you also have to implement hook_theme_registry_alter() for Drupal to pick up your template.

Maybe you can use a process function to assign this to a variable for the template.

function YOURMODULE_preprocess_HOOK($variables) {
   $output = theme('vimn_article_template', $vars);
   // etc, etc...
}