You are here

function node_example_theme in Examples for Developers 7

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

Implements hook_theme().

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

Related topics

File

node_example/node_example.module, line 249
Module file for Node Example module.

Code

function node_example_theme($existing, $type, $theme, $path) {
  return array(
    'example_node_color' => array(
      'variables' => array(
        'color' => NULL,
      ),
    ),
  );
}