You are here

function mmenu_mmenu_extension in Mobile sliding menu 7.3

Implements hook_mmenu_extension(). Refer to: http://mmenu.frebsite.nl/documentation/extensions.

File

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

Code

function mmenu_mmenu_extension() {
  $module_path = drupal_get_path('module', 'mmenu');
  $libraries_path = libraries_get_path('mmenu');
  return array(
    'border_style' => array(
      'name' => 'border_style',
      'title' => t('Border style'),
      'multiple' => FALSE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/border-style.html',
      'options' => array(
        'border-indent' => array(
          'name' => 'border-indent',
          'title' => t('List items have a border that is indented on the left.'),
          'css' => array(),
        ),
        'border-full' => array(
          'name' => 'border-full',
          'title' => t('List items have a border that is not indented.'),
          'css' => array(),
        ),
        'border-offset' => array(
          'name' => 'border-offset',
          'title' => t('List items have a border that is indented on both sides.'),
          'css' => array(),
        ),
        'border-none' => array(
          'name' => 'border-none',
          'title' => t('List items don\'t have a border.'),
          'css' => array(),
        ),
      ),
    ),
    'effects' => array(
      'name' => 'effects',
      'title' => t('Effects'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/effects.html',
      'options' => array(
        'effect-menu-fade' => array(
          'name' => 'effect-menu-fade',
          'title' => t('Makes the menu fade in.'),
          'css' => array(),
        ),
        'effect-menu-slide' => array(
          'name' => 'effect-menu-slide',
          'title' => t('Makes the menu slide in from the side.'),
          'css' => array(
            $module_path . '/extensions/effects/effect-menu-slide/styles/effect-menu-slide.css',
          ),
        ),
        'effect-menu-zoom' => array(
          'name' => 'effect-menu-zoom',
          'title' => t('Makes the menu zoom in.'),
          'css' => array(),
        ),
        'effect-panels-slide-0' => array(
          'name' => 'effect-panels-slide-0',
          'title' => t('Makes the panels not slide out while opening a submenu.'),
          'css' => array(),
        ),
        'effect-panels-slide-100' => array(
          'name' => 'effect-panels-slide-100',
          'title' => t('Makes the panels fully slide out while opening a submenu.'),
          'css' => array(),
        ),
        'effect-panels-zoom' => array(
          'name' => 'effect-panels-zoom',
          'title' => t('Makes the panels zoom out while opening a submenu.'),
          'css' => array(),
        ),
        'effect-listitems-drop' => array(
          'name' => 'effect-listitems-drop',
          'title' => t('Makes the list items drop down one by one.'),
          'css' => array(),
        ),
        'effect-listitems-fade' => array(
          'name' => 'effect-listitems-fade',
          'title' => t('Makes the list items fade in one by one.'),
          'css' => array(),
        ),
        'effect-listitems-slide' => array(
          'name' => 'effect-listitems-slide',
          'title' => t('Makes the list items slide (and fade) in one by one.'),
          'css' => array(),
        ),
      ),
    ),
    'fullscreen' => array(
      'name' => 'fullscreen',
      'title' => t('Fullscreen'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/fullscreen.html',
      'options' => array(
        'fullscreen' => array(
          'name' => 'fullscreen',
          'title' => t('Makes the menu will fill up 100% of the available width'),
          'css' => array(),
        ),
      ),
    ),
    'iconbar' => array(
      'name' => 'iconbar',
      'title' => t('Iconbar'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/iconbar.html',
      'options' => array(
        'iconbar' => array(
          'name' => 'iconbar',
          'title' => t('To always have a small part of the menu visible (most commonly when you\'re using icons)'),
          'css' => array(
            $libraries_path . '/main/dist/extensions/iconbar/jquery.mmenu.iconbar.css',
          ),
        ),
      ),
    ),
    'justified_listview' => array(
      'name' => 'justified_listview',
      'title' => t('Justified listview'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/justified-listview.html',
      'options' => array(
        'justified-listview' => array(
          'name' => 'justified-listview',
          'title' => t('To vertically justify the list items in a listview.'),
          'css' => array(),
        ),
      ),
    ),
    'multiline' => array(
      'name' => 'multiline',
      'title' => t('Multiline'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/multiline.html',
      'options' => array(
        'multiline' => array(
          'name' => 'multiline',
          'title' => t('All list items in a listview will not be truncated with an ellipsis to fit on a single line.'),
          'css' => array(),
        ),
      ),
    ),
    'page_dim' => array(
      'name' => 'page_dim',
      'title' => t('Page dim'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/page-dim.html',
      'options' => array(
        'pagedim' => array(
          'name' => 'pagedim',
          'title' => t('Dims out the page to its background color.'),
          'css' => array(),
        ),
        'pagedim-white' => array(
          'name' => 'pagedim-white',
          'title' => t('Dims out the page to white.'),
          'css' => array(),
        ),
        'pagedim-black' => array(
          'name' => 'pagedim-black',
          'title' => t('Dims out the page to black.'),
          'css' => array(),
        ),
      ),
    ),
    'page_shadow' => array(
      'name' => 'page_shadow',
      'title' => t('Page shadow'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/page-shadow.html',
      'options' => array(
        'pageshadow' => array(
          'name' => 'pageshadow',
          'title' => t('To have a shadow to emphasize it\'s in front of the menu.'),
          'css' => array(
            $module_path . '/extensions/pageshadow/styles/pageshadow.css',
          ),
        ),
      ),
    ),
    'popup' => array(
      'name' => 'popup',
      'title' => t('Popup'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/popup.html',
      'options' => array(
        'popup' => array(
          'name' => 'popup',
          'title' => t('To open the menu as a popup.'),
          'css' => array(),
        ),
      ),
    ),
    'themes' => array(
      'name' => 'themes',
      'title' => t('Themes'),
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/themes.html',
      'multiple' => FALSE,
      'options' => array(
        'theme-light' => array(
          'name' => 'theme-light',
          'title' => t('Light Theme'),
          'css' => array(
            $module_path . '/extensions/themes/theme-light/styles/theme-light.css',
          ),
        ),
        'theme-dark' => array(
          'name' => 'theme-dark',
          'title' => t('Dark Theme'),
          'css' => array(
            $module_path . '/extensions/themes/theme-dark/styles/theme-dark.css',
          ),
        ),
      ),
    ),
    'tileview' => array(
      'name' => 'tileview',
      'title' => t('Tileview'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/tileview.html',
      'options' => array(
        'tileview' => array(
          'name' => 'tileview',
          'title' => t('Makes the tile fill up 50% of the available width.'),
          'css' => array(),
        ),
      ),
    ),
    'widescreen' => array(
      'name' => 'widescreen',
      'title' => t('widescreen'),
      'multiple' => TRUE,
      'url' => 'http://mmenu.frebsite.nl/documentation/extensions/widescreen.html',
      'options' => array(
        'widescreen' => array(
          'name' => 'widescreen',
          'title' => t('If you want the menu to always be opened (most commonly on a wider screen).'),
          'css' => array(
            $libraries_path . '/main/dist/extensions/widescreen/jquery.mmenu.widescreen.css',
          ),
        ),
      ),
    ),
  );
}