You are here

function _better_jump_menu_get_block_default_configuration in Better Jump Menu 7

Get the configuration for a better jump menu block.

Parameters

$menu_machine_name: The menu machine name.

Return value

array

2 calls to _better_jump_menu_get_block_default_configuration()
better_jump_menu_block_configure in ./better_jump_menu.module
Implements hook_block_configure().
better_jump_menu_block_view in ./better_jump_menu.module
Implements hook_block_view().

File

./better_jump_menu.helpers.inc, line 34
Helpers functions.

Code

function _better_jump_menu_get_block_default_configuration($menu_machine_name) {
  $configuration = variable_get('better_jump_menu_block_configuration', array());
  $defaults = array(
    'external' => FALSE,
    'hide' => FALSE,
    'path' => '',
    'indent' => '-',
    'text' => t('Go'),
    'title' => '',
    'choose' => t('- Choose -'),
    'inline' => TRUE,
  );
  return isset($configuration[$menu_machine_name]) ? $configuration[$menu_machine_name] + $defaults : $defaults;
}