You are here

function js_example_theme in Examples for Developers 7

Same name and namespace in other branches
  1. 8 js_example/js_example.module \js_example_theme()
  2. 3.x modules/js_example/js_example.module \js_example_theme()

Implements hook_theme().

Related topics

File

js_example/js_example.module, line 18
Examples showing how to use some of the new JavaScript features in Drupal 7.

Code

function js_example_theme() {
  return array(
    'my_accordion' => array(
      'template' => 'accordion',
      'variables' => array(
        'title' => NULL,
      ),
    ),
  );
}