Call template file, hook_theme() thru theme( hook, $data ) I am trying to call a template file but without luck. 

   /**
     * Implements hook_theme().
     */
    function my_module_theme($existing, $type, $theme, $path) {
      return array(
        'my_module_text' =&gt; array(
          'template' =&gt; 'my_module_text',
          'variables' =&gt; array(
               'myvar' =&gt; 'helloworld'
           ),
          'path' =&gt; drupal_get_path('module', 'my_module'),
        ),
      );
    }


    /**
     * Preprocessor for theme('my_module_text').
     */ 
    function my_module_preprocess_my_module_text(&amp;$variables) {
      debug('text preprocessor called');
    }


I have a template file in the module directory named my_module_text.tpl.php.  

When I call theme('my_module_text',array('myvar' =&gt; 'helloworld')); I get nothing. The template file is not used.

Am I missing anything?
Your code looks fine to me; make sure you've cleared Drupal's caches since implementing hook_theme(), and your preprocess function, as these implementations are cached, and won't show up in the registry until you do.

FYI, the "path" property is not required if the template file resides in your module's folder: Drupal will check there first anyway (this won't be causing the problem though).