Created
August 29, 2014 14:49
-
-
Save mkorostoff/94a946a0cd9944d44b79 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_views_api_alter(). | |
* Enables using templates inside module | |
*/ | |
function yourmodule_views_api_alter(&$list) { | |
$list['yourmodule']['template path'] = drupal_get_path('module', 'yourmodule').'/templates'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment