function mb_extra_admin in More Buttons 7
Provides the MB Extra settings form.
1 string reference to 'mb_extra_admin'
- mb_extra_menu in mb_extra/
mb_extra.module - Implements hook_menu().
File
- mb_extra/
mb_extra.admin.inc, line 11
Code
function mb_extra_admin() {
$module = 'mb_extra';
$form = array();
$description_tabs_destination = '<p>' . t('Use the node local task links with destination parameter.') . '</p>';
$description_tabs_destination .= '<p>' . t('If activated the %overlay module is not available this feature.', array(
'%overlay' => t('Overlay'),
)) . '</p>';
$form[$module]['tabs_destination'] = array(
'#type' => 'fieldset',
'#title' => t('Content local tasks'),
'#description' => $description_tabs_destination,
'#collapsible' => false,
'#collapsed' => false,
'#tree' => true,
);
$form[$module]['tabs_destination'][$module . '_destination_tabs'] = array(
'#type' => 'checkbox',
'#title' => t('Enable node tab links with destination parameter.'),
'#default_value' => variable_get($module . '_destination_tabs', 0),
);
$form[$module]['confirm_cancel'] = array(
'#type' => 'fieldset',
'#title' => t('Confirm cancel'),
'#description' => '<p>' . t('Alter the confirm form cancel link to display it as button.') . '</p>',
'#collapsible' => false,
'#collapsed' => false,
'#tree' => true,
);
$form[$module]['confirm_cancel'][$module . '_confirm_cancel'] = array(
'#type' => 'checkbox',
'#title' => t('Display link as button'),
'#default_value' => variable_get($module . '_confirm_cancel', 0),
);
$form['submit']['save'] = array(
'#type' => 'submit',
'#name' => 'save',
'#value' => t('Save'),
);
$form['submit']['reset'] = array(
'#type' => 'submit',
'#name' => 'reset',
'#value' => t('Reset to defaults'),
);
return $form;
}