function simple_megamenu_theme in Simple Mega Menu 8
Same name and namespace in other branches
- 2.0.x simple_megamenu.module \simple_megamenu_theme()
Implements hook_theme().
File
- ./
simple_megamenu.module, line 32 - Contains simple_megamenu.module.
Code
function simple_megamenu_theme() {
$theme = [];
$theme['simple_mega_menu'] = [
'render element' => 'elements',
'file' => 'simple_mega_menu.page.inc',
'template' => 'simple-mega-menu',
];
$theme['simple_mega_menu_content_add_list'] = [
'render element' => 'content',
'variables' => [
'content' => NULL,
],
'file' => 'simple_mega_menu.page.inc',
];
$theme['menu__simple_megamenu'] = [
'render element' => 'content',
'base hook' => 'menu',
];
return $theme;
}