Closed (fixed)
Project:
Slider
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Jan 2009 at 23:32 UTC
Updated:
16 Jan 2009 at 10:29 UTC
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.
Comments
Comment #1
Mark Theunissen commentedThe 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.
Comment #2
Mark Theunissen commented