function better_jump_menu_block_configure in Better Jump Menu 7
Implements hook_block_configure().
File
- ./
better_jump_menu.module, line 41
Code
function better_jump_menu_block_configure($delta = '') {
$configuration = _better_jump_menu_get_block_default_configuration($delta);
return array(
'better_jump_menu' => array(
'#tree' => TRUE,
'#type' => 'fieldset',
'#title' => 'Better Jump Menu configuration',
'external' => array(
'#type' => 'checkbox',
'#title' => t('Open links in external window'),
'#default_value' => !empty($configuration['external']),
'#description' => t('Check this to open links in external window.'),
),
'hide' => array(
'#type' => 'checkbox',
'#title' => t('Hide the "Go" button'),
'#default_value' => !empty($configuration['hide']),
'#description' => t('If hidden, this button will only be hidden for users with javascript and the page will automatically jump when the select is changed.'),
),
'indent' => array(
'#type' => 'textfield',
'#title' => t('Indentation character'),
'#default_value' => $configuration['indent'],
'#description' => t('The indentation character(s) to prepend to options text.'),
),
'text' => array(
'#type' => 'textfield',
'#title' => t('Button text'),
'#default_value' => $configuration['text'],
),
'title' => array(
'#type' => 'textfield',
'#title' => t('Selector label'),
'#default_value' => $configuration['title'],
'#description' => t('The text that will appear as the the label of the selector element. If blank no label tag will be used.'),
),
'choose' => array(
'#type' => 'textfield',
'#title' => t('Choose text'),
'#default_value' => $configuration['choose'],
'#description' => t('The text that will appear as the selected option in the jump menu.'),
),
'inline' => array(
'#type' => 'checkbox',
'#title' => t('Set this field to display inline'),
'#default_value' => !empty($configuration['inline']),
),
),
);
}