You are here

function context_reaction_block::settings_form in Context 6.3

Same name and namespace in other branches
  1. 6 plugins/context_reaction_block.inc \context_reaction_block::settings_form()
  2. 7.3 plugins/context_reaction_block.inc \context_reaction_block::settings_form()

Settings form for variables.

Overrides context_reaction::settings_form

File

plugins/context_reaction_block.inc, line 187

Class

context_reaction_block
Expose blocks as context reactions.

Code

function settings_form() {
  $form = array();
  $form['context_reaction_block_disable_core'] = array(
    '#title' => t('Core block system'),
    '#type' => 'select',
    '#options' => array(
      FALSE => t('Enabled'),
      TRUE => t('Disabled'),
    ),
    '#default_value' => variable_get('context_reaction_block_disable_core', FALSE),
    '#description' => t('If enabled Context will include blocks enabled through the core block system when rendering regions. Disable to improve performance and hide the core block administration UI.'),
  );
  $form['context_reaction_block_all_regions'] = array(
    '#title' => t('Show all regions'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('context_reaction_block_all_regions', FALSE),
    '#description' => t('Show all regions including those that are empty. Enable if you are administering your site using the inline editor.'),
  );
  return $form;
}