Hi all drupalers,
I have a module which provides a custom content-type called property, and a theme template file called [login to view URL] which exists in my custom theme folder.
I want to package my module, so I need to move the;
mytheme/theme/[login to view URL]
into my module structure like so;
mymodule/theme/[login to view URL]
so I have put the template into the theme/ folder in mymodule and added the following to my hook_theme function;
function my_module_theme() {
$path = drupal_get_path('module', 'mymodule') ."/theme";
return array(
// 'image_view' => array(
// 'arguments' => array('imagecache' => NULL, 'image' => NULL),
// 'file' => $file,
// ),
'node-property' => array(
'template' => 'node-property',
'arguments' => array('fields' => NULL),
'path' => $path,
),
}
However, this template is not picked, up and the property nodes are displayed with the default [login to view URL]
Can anyone suggest what I am doing wrong, or what tools I can use to debug. (i am using theme devel module which is pretty cool, but I am not sure how to get it to show me what themes are loaded..)
many Thanks,
Tom