You are here

function _dhtml_menu_defaults in DHTML Menu 7

Same name and namespace in other branches
  1. 8 dhtml_menu.install \_dhtml_menu_defaults()
  2. 6.4 dhtml_menu.install \_dhtml_menu_defaults()

Default settings storage.

2 calls to _dhtml_menu_defaults()
dhtml_menu_install in ./dhtml_menu.install
Implementation of hook_install(). This will create our system variable defaults. The benefit is that we do not need to pass defaults to variable_get(), which allows centralization of defaults.
dhtml_menu_update_7102 in ./dhtml_menu.install
#7102: Consolidate variables into one settings array.

File

./dhtml_menu.install, line 12
dhtml_menu.install Installation and update functions for the DHTML Menu module.

Code

function _dhtml_menu_defaults() {
  return array(
    'nav' => 'open',
    'animation' => array(
      'effects' => array(
        'height' => 'height',
        'opacity' => 'opacity',
      ),
      'speed' => 500,
    ),
    'effects' => array(
      'siblings' => 'close-same-tree',
      'children' => 'none',
      'remember' => 0,
    ),
    'filter' => array(
      'type' => 'blacklist',
      'list' => array(),
    ),
  );
}