You are here

function node_example_theme in Examples for Developers 6

Same name and namespace in other branches
  1. 7 node_example/node_example.module \node_example_theme()

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',
      ),
    ),
  );
}