You are here

function mmenu_get_default_configurations in Mobile sliding menu 7.2

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

Gets default configurations of the mmenu.

Return value

array Default mmenu configurations.

1 call to mmenu_get_default_configurations()
mmenu_list in ./mmenu.module
Gets a list of available mmenus.

File

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

Code

function mmenu_get_default_configurations() {
  return array(
    // A map of the classNames options.
    'classNames' => array(
      // The classname on a LI that should be displayed as a label.
      'label' => "Label",
      // The classname on an element (for example a DIV) that
      // should be considered to be a panel.
      // Only applies if the "isMenu" option is set to false.
      'panel' => "Panel",
      // The classname on the LI that should be displayed as selected.
      'selected' => "Selected",
    ),
    // jQuery selector containing the node-type of panels.
    'panelNodetype' => 'div, ul, ol',
    // The number of milliseconds used in the CSS transitions.
    'transitionDuration' => 400,
    'classNames' => array(
      'buttonbars' => array(
        'buttonbar' => 'anchors',
      ),
      'counters' => array(
        'counter' => 'Counter',
      ),
      'dragOpen' => array(),
      'fixedElements' => array(
        'fixedTop' => 'FixedTop',
        'fixedBottom' => 'FixedBottom',
      ),
      'footer' => array(
        'panelFooter' => 'Footer',
      ),
      'header' => array(
        'panelHeader' => 'Header',
        'panelNext' => 'Next',
        'panelPrev' => 'Prev',
      ),
      'labels' => array(
        'collapsed' => 'Collapsed',
      ),
      'offCanvas' => array(),
      'searchfield' => array(),
      'toggles' => array(
        'toggle' => 'Toggle',
        'check' => 'Check',
      ),
    ),
    // A map of the buttonbars options.
    'buttonbars' => array(),
    // A map of the counter options.
    'counters' => array(),
    // A map of the "dragOpen" configuration options.
    'dragOpen' => array(
      // A map of the "dragOpen.width" configuration options.
      'width' => array(
        // The width of the menu as a percentage.
        // From 0.0 (fully hidden) to 1.0 (fully opened).
        'perc' => 0.8,
        // The minimum width of the menu.
        'min' => 140,
        // The maximum width of the menu.
        'max' => 440,
      ),
      // A map of the "dragOpen.height" configuration options.
      'height' => array(
        // The height of the menu as a percentage.
        // From 0.0 (fully hidden) to 1.0 (fully opened).
        'perc' => 0.8,
        // The minimum height of the menu.
        'min' => 140,
        // The maximum height of the menu.
        'max' => 880,
      ),
    ),
    // A map of the fixedElements options.
    'fixedElements' => array(),
    // A map of the footer options.
    'footer' => array(),
    // A map of the header options.
    'header' => array(),
    // A map of the labels options.
    'labels' => array(),
    // A map of the offCanvas options.
    'offCanvas' => array(
      // How to inject the menu to the DOM.
      // Possible values: "prepend" or "append".
      'menuInjectMethod' => 'prepend',
      // jQuery selector for the node the menu should be injected in.
      'menuWrapperSelector' => 'body',
      // The node-type of the page.
      'pageNodetype' => 'div',
      // jQuery selector for the page.
      'pageSelector' => 'body > div',
    ),
    // A map of the searchfield options.
    'searchfield' => array(),
    // A map of the toggles options.
    'toggles' => array(),
  );
}