function nodeapi_example_theme in Examples for Developers 7
Same name and namespace in other branches
- 6 nodeapi_example/nodeapi_example.module \nodeapi_example_theme()
Implements hook_theme().
This lets us tell Drupal about our theme functions and their arguments.
Related topics
File
- nodeapi_example/
nodeapi_example.module, line 248 - Module implementation for nodeapi_example module.
Code
function nodeapi_example_theme() {
return array(
'nodeapi_example_rating' => array(
'variables' => array(
'rating' => NULL,
),
),
);
}