function hook_mmenu in Mobile sliding menu 8
Same name and namespace in other branches
- 7.3 mmenu.api.php \hook_mmenu()
- 7 mmenu.api.php \hook_mmenu()
- 7.2 mmenu.api.php \hook_mmenu()
Allows modules to add more mmenus.
3 functions implement hook_mmenu()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- mmenu_mmenu in ./
mmenu.module - Implements hook_mmenu().
- mmenu_theme_suggestions_mmenu in ./
mmenu.module - Implements hook_theme_suggestions_HOOK().
- template_preprocess_mmenu in ./
mmenu.module - Processes variables for mmenu.tpl.php.
1 invocation of hook_mmenu()
- mmenu_list in ./
mmenu.module - Gets a list of available mmenus.
File
- ./
mmenu.api.php, line 11 - Hooks provided by mmenu module.
Code
function hook_mmenu() {
return array(
'mmenu_left' => array(
'enabled' => TRUE,
'enabled_callback' => array(
'php' => array(
'mmenu_enabled_callback',
),
'js' => array(
'mmenu_enabled_callback',
),
),
'name' => 'mmenu_left',
'title' => t('Left menu'),
'blocks' => array(
array(
'title' => t('Main menu'),
'module' => 'system',
'delta' => 'main-menu',
'collapsed' => FALSE,
'wrap' => FALSE,
),
array(
'title' => t('Management'),
'module' => 'system',
'delta' => 'management',
'collapsed' => FALSE,
'wrap' => FALSE,
'menu_parameters' => array(
'min_depth' => 2,
),
),
),
'options' => array(
'position' => 'left',
'classes' => 'mm-light',
),
'configurations' => array(),
// Adds your own CSS or JS handlers if you want.
'custom' => array(
'library' => array(
'examples/example.mmenu',
),
),
),
);
}