function context_admin_menu_context_edit_settings in Contextual Administration 6
Same name and namespace in other branches
- 7 plugins/task_handlers/menu_context.inc \context_admin_menu_context_edit_settings()
1 string reference to 'context_admin_menu_context_edit_settings'
- menu_context.inc in plugins/
task_handlers/ menu_context.inc
File
- plugins/
task_handlers/ menu_context.inc, line 246
Code
function context_admin_menu_context_edit_settings(&$form, &$form_state) {
$conf = $form_state['handler']->conf;
$form['conf']['title'] = array(
'#type' => 'textfield',
'#default_value' => $conf['title'],
'#title' => t('Administrative title'),
'#description' => t('Administrative title of this variant.'),
);
$form['conf']['no_blocks'] = array(
'#type' => 'checkbox',
'#default_value' => $conf['no_blocks'],
'#title' => t('Disable Drupal blocks/regions'),
'#description' => t('Check this to have the page disable all regions displayed in the theme. Note that some themes support this setting better than others. If in doubt, try with stock themes to see.'),
);
$form['conf']['css_id'] = array(
'#type' => 'textfield',
'#size' => 35,
'#default_value' => $conf['css_id'],
'#title' => t('CSS ID'),
'#description' => t('The CSS ID to apply to this page'),
);
$form['conf']['css'] = array(
'#type' => 'textarea',
'#title' => t('CSS code'),
'#description' => t('Enter well-formed CSS code here; this code will be embedded into the page, and should only be used for minor adjustments; it is usually better to try to put CSS for the page into the theme if possible. This CSS will be filtered for safety so some CSS may not work.'),
'#default_value' => $conf['css'],
);
}