I wrote a simple module that uses hook_theme()
.
/**
* Implements hook_theme().
*/
function test_theme() {
'upload_page' => array(
'template' => 'templates/upload_page',
'arguments' => array(
'uploadurl' => NULL,
'options' => NULL,
'title' => NULL,
'user' => NULL),
)
}
I still have an error.
Warning: include(./sites/all/themes/test/templates/upload_page.tpl.php): failed to open stream: No such file or directory
How do I change this path to ./sites/all/modules/test/templates?