You are here

function superfish_theme in Superfish 8

Same name and namespace in other branches
  1. 6 superfish.module \superfish_theme()
  2. 7 superfish.module \superfish_theme()

Implements hook_theme().

File

./superfish.module, line 351
The jQuery Superfish plugin for Drupal menus.

Code

function superfish_theme($existing, $type, $theme, $path) {
  return [
    'superfish' => [
      'render element' => 'element',
      'file' => 'superfish.theme.inc',
    ],
    'superfish_menu_items' => [
      'render element' => 'element',
      'file' => 'superfish.theme.inc',
    ],
    'superfish_help' => [
      'variables' => [
        'title' => NULL,
        'content' => NULL,
      ],
      'template' => 'superfish--help',
    ],
  ];
}