function mmenu_get_default_configurations in Mobile sliding menu 7.3
Same name and namespace in other branches
- 8 mmenu.module \mmenu_get_default_configurations()
- 7 mmenu.module \mmenu_get_default_configurations()
- 7.2 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 930 - 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 divider.
'divider' => "Divider",
// The classname on a submenu (a nested UL) that should
// be displayed as a default list.
'inset' => "Inset",
// 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",
// The classname on a submenu (a nested UL) that should expand
// below their parent instead of slide in from the right.
'vertical' => "Vertical",
),
// The number of milliseconds between opening/closing the menu and panels,
// needed to force CSS transitions.
'openingInterval' => 25,
// 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(
'counters' => array(
'counter' => 'Counter',
),
'dragOpen' => array(),
'fixedElements' => array(
'fixed' => 'Fixed',
),
'navbars' => array(
'panelTitle' => 'Title',
'panelNext' => 'Next',
'panelPrev' => 'Prev',
),
'offCanvas' => array(),
'searchfield' => array(),
'toggles' => array(
'toggle' => 'Toggle',
'check' => 'Check',
),
),
// 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 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',
// Whether or not multiple nodes targeted by the pageSelector
// should be wrapped in a single node.
'wrapPageIfNeeded' => TRUE,
),
// A map of the searchfield options.
'searchfield' => array(),
);
}