How to store Views templates with a module instead of a theme I have created several views templates that are currently stored in my active themes directory.  In would prefer these templates be stored within my module directory.

My question is, how can I bring these theme files (views-view-field.tpl.php for example.) into my modules directory and have them be seen by Views? 

Looking at the Views modules, I can see that default templates are stored in views/theme, but I don't see how it has been implemented.
This took me a while to figure out as well. The following code should be placed in your .module file (the code assumes your module is called "NAME")

/**
* Implements hook_views_api().
*
* Enabling using templates inside module
*/
function NAME_views_api() {
  return array(
    'api' =&gt; 3,
    'path' =&gt; drupal_get_path('module', 'NAME'),
    'template path' =&gt; drupal_get_path('module', 'NAME'),
  );
}


This will tell Views to look in the root directory of your module. I personally am a fan of adding a subdirectory to the module to hold template files. To do this append the directory name to the end of the template path, eg:

'template path' =&gt; drupal_get_path('module', 'NAME') . '/templates',