By chandra sekhar on
hai all,
i know drupal 6 hook mechanism.Now i have to develop one project in Drupal 5.
I have develped one module .I have not find hook_theme in Drupal 5 surprisingly . Can any one suggest me is theme machanism available in Drupal 5 if not please suggest me how to call external .tpl.php files.
By doing this i need to write all html code and assigned to $output;
like $output = '
| hai |
'
for this i want to use like
$output = theme(hai)
hai.tpl.php has the code
| hai |
please suggest me this is very much helpful for me
Comments
With Drupal 5 theming is
With Drupal 5 theming is handled with theme functions by default (you can use a tpl.php file but not directly). So calling your theme function looks like this
When you declare the function the actual name is theme_your_theme_function (the name passed to theme prefixed with 'theme_'), so it might look like
See http://drupal.org/node/11811 for overriding the theme function and using a tpl.php file.
thank you very much its working
hi
it helped me a lot and our designers
thank you very much