You are here

function _jump_menu_get_settings in Better Jump Menus 7

Utility: Grab settings or defaults, for display or settings form.

1 call to _jump_menu_get_settings()
_jump_menu_render_block in ./jump_menu.module
Abstract block rendering to be more flexible about when/how this happens.

File

./jump_menu.module, line 532
Make use of the CTools jump menu and grabs from an existing menu. See: modules/ctools/includes/jump-menu.inc NOTE: Menu items must be checked as "expanded" for traversing to work.

Code

function _jump_menu_get_settings($delta) {
  $settings = variable_get('jump_menu_block_settings', array());
  return array(
    'show_current' => isset($settings[$delta]['show_current']) ? $settings[$delta]['show_current'] : JUMP_MENU_BLOCK_DEFAULTS_SHOW_CURRENT,
    'show_button' => isset($settings[$delta]['show_button']) ? $settings[$delta]['show_button'] : JUMP_MENU_BLOCK_DEFAULTS_SHOW_BUTTON,
  );
}