You are here

function hook_mmenu in Mobile sliding menu 7

Same name and namespace in other branches
  1. 8 mmenu.api.php \hook_mmenu()
  2. 7.3 mmenu.api.php \hook_mmenu()
  3. 7.2 mmenu.api.php \hook_mmenu()

Allows modules to add more mmenus.

2 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().
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 12
Hooks provided by mmenu module.

Code

function hook_mmenu() {
  $module_path = drupal_get_path('module', 'mmenu');
  return array(
    'mmenu_left' => array(
      'enabled' => TRUE,
      '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(
        'css' => array(
          $module_path . '/examples/css/mmenu_example.custom.css',
        ),
        'js' => array(
          $module_path . '/examples/js/mmenu_example.custom.js',
        ),
      ),
    ),
  );
}