function mmenu_theme in Mobile sliding menu 8
Same name and namespace in other branches
- 7.3 mmenu.module \mmenu_theme()
- 7 mmenu.module \mmenu_theme()
- 7.2 mmenu.module \mmenu_theme()
Implements hook_theme().
File
- ./
mmenu.module, line 287 - Primarily Drupal hooks and global API functions to manipulate mmenus.
Code
function mmenu_theme() {
$module_path = drupal_get_path('module', 'mmenu');
return array(
'mmenu' => array(
'render element' => 'elements',
'template' => 'mmenu',
'path' => $module_path . '/tpl',
),
'mmenu_tree' => array(
'variables' => array(
'tree' => NULL,
'reset' => FALSE,
'depth' => 1,
),
'function' => 'theme_mmenu_tree',
),
'mmenu_primary_navigation' => [
'render element' => 'children',
],
);
}