You are here

function ultimenu_theme in Ultimenu 7

Same name and namespace in other branches
  1. 8.2 ultimenu.module \ultimenu_theme()
  2. 8 ultimenu.module \ultimenu_theme()

Implements hook_ultimenu_theme().

File

./ultimenu.module, line 19
Build Ultimenu regions based on enabled menu and its available menu items.

Code

function ultimenu_theme(&$existing, $type, $theme, $path) {
  $base = array(
    'file' => 'ultimenu.theme.inc',
    'path' => $path . '/templates',
  );
  return array(
    'ultimenu' => $base + array(
      'render element' => 'element',
      'pattern' => 'ultimenu__',
      'template' => 'ultimenu',
    ),
    'ultimenu_link' => $base + array(
      'render element' => 'element',
      'pattern' => 'ultimenu_link__',
    ),
    'ultimenu_region' => $base + array(
      'render element' => 'element',
    ),
  );
}