You are here

function mmenu_mmenu in Mobile sliding menu 7.3

Same name and namespace in other branches
  1. 8 mmenu.module \mmenu_mmenu()
  2. 7 mmenu.module \mmenu_mmenu()
  3. 7.2 mmenu.module \mmenu_mmenu()

Implements hook_mmenu().

File

./mmenu.module, line 11
Primarily Drupal hooks and global API functions to manipulate mmenus.

Code

function mmenu_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,
        ),
      ),
      'position' => 'left',
      'options' => array(
        'themes' => array(
          'options' => 'theme-dark',
        ),
        'offCanvas' => array(
          'enabled' => TRUE,
          'blockUI' => TRUE,
          'moveBackground' => TRUE,
          'position' => 'left',
          'zposition' => 'back',
        ),
      ),
      'configurations' => array(),
    ),
    'mmenu_right' => array(
      'enabled' => FALSE,
      'name' => 'mmenu_right',
      'title' => t('Right menu'),
      'blocks' => array(
        array(
          'title' => t('Search'),
          'module' => 'mmenu',
          'delta' => 'search',
          'collapsed' => FALSE,
          'wrap' => TRUE,
        ),
        array(
          'title' => t('User menu'),
          'module' => 'system',
          'delta' => 'user-menu',
          'collapsed' => FALSE,
        ),
      ),
      'position' => 'right',
      'options' => array(
        'themes' => array(
          'options' => 'theme-dark',
        ),
      ),
      'configurations' => array(),
    ),
    'mmenu_top' => array(
      'enabled' => FALSE,
      'name' => 'mmenu_top',
      'title' => t('Top menu'),
      'blocks' => array(
        array(
          'title' => t('Log in'),
          'module' => 'user',
          'delta' => 'login',
          'collapsed' => FALSE,
          'wrap' => TRUE,
        ),
      ),
      'position' => 'top',
      'options' => array(
        'themes' => array(
          'options' => 'theme-dark',
        ),
      ),
      'configurations' => array(),
    ),
    'mmenu_bottom' => array(
      'enabled' => FALSE,
      'name' => 'mmenu_bottom',
      'title' => t('Bottom menu'),
      'blocks' => array(
        array(
          'title' => t('Management'),
          'module' => 'system',
          'delta' => 'management',
          'collapsed' => FALSE,
          'menu_parameters' => array(
            'min_depth' => 2,
          ),
        ),
      ),
      'position' => 'bottom',
      'options' => array(
        'themes' => array(
          'options' => 'theme-dark',
        ),
      ),
      'configurations' => array(),
    ),
  );
}