You are here

function nodeapi_example_theme in Examples for Developers 6

Same name and namespace in other branches
  1. 7 nodeapi_example/nodeapi_example.module \nodeapi_example_theme()

Implementation of hook_theme().

This lets us tell Drupal about our theme functions and their arguments.

Related topics

File

nodeapi_example/nodeapi_example.module, line 161
This is an example outlining how a module can be used to extend existing content types.

Code

function nodeapi_example_theme() {
  return array(
    'nodeapi_example_rating' => array(
      'arguments' => array(
        'rating',
      ),
    ),
  );
}