| 6 node_example.module | node_example_theme() |
| 7 node_example.module | node_example_theme($existing, $type, $theme, $path) |
| 8 node_example.module | node_example_theme($existing, $type, $theme, $path) |
Implementation of hook_theme().
This lets us tell Drupal about our theme functions and their arguments.
Related topics
File
- node_example/
node_example.module, line 290 - This is an example outlining how a module can be used to define a new node type.
Code
function node_example_theme() {
return array(
'node_example_order_info' => array(
'arguments' => array('node'),
),
);
}
Login or register to post comments