theme function?
varunity - January 15, 2009 - 23:32
| Project: | Slider |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
It would be nice if the module had a theme function instead of template_preprocess_slider. According to Drupal.org,
"All functions that produce HTML for display should be themeable. This means that they should be named with the theme_ prefix, and invoked using theme() rather than being called directly. This allows themes to override the display of any Drupal object."
This would be great so that users can use template.php to override functions.

#1
The theme system has changed in Drupal 6. I suggest you read the theme guide for details on how theming works in D6:
http://drupal.org/node/341628
The short answer is that the _preprocess function and the template file together combine to give you the method of theming the output.
#2