function context_ui_settings

cis7 context_ui.module context_ui_settings($form, &$form_state)
cle7 context_ui.module context_ui_settings($form, &$form_state)
elmsmedia7 context_ui.module context_ui_settings($form, &$form_state)
icor7 context_ui.module context_ui_settings($form, &$form_state)
meedjum_blog7 context_ui.module context_ui_settings($form, &$form_state)
mooc7 context_ui.module context_ui_settings($form, &$form_state)

Settings form.

1 string reference to 'context_ui_settings'
context_ui_menu in sites/all/modules/ulmus/context/context_ui/context_ui.module
Implementation of hook_menu().

File

sites/all/modules/ulmus/context/context_ui/context_ui.module, line 283

Code

function context_ui_settings($form, &$form_state) {
  $form = array();
  foreach (context_conditions() as $condition => $info) {
    if ($plugin = context_get_plugin('condition', $condition)) {
      $settings_form = $plugin->settings_form();
      if ($settings_form) {
        $form['conditions'][$condition] = $settings_form;
        $form['conditions'][$condition]['#tree'] = FALSE;
        $form['conditions'][$condition]['#type'] = 'fieldset';
        $form['conditions'][$condition]['#title'] = $info['title'];
      }
    }
  }
  foreach (context_reactions() as $reaction => $info) {
    if ($plugin = context_get_plugin('reaction', $reaction)) {
      $settings_form = $plugin->settings_form();
      if ($settings_form) {
        $form['reactions'][$reaction] = $settings_form;
        $form['reactions'][$reaction]['#tree'] = FALSE;
        $form['reactions'][$reaction]['#type'] = 'fieldset';
        $form['reactions'][$reaction]['#title'] = $info['title'];
      }
    }
  }
  $form['context_ui_dialog_enabled'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use Context Editor Dialog'),
    '#default_value' => context_ui_dialog_is_enabled(),
    '#description' => t('When enabled all contextual links will have a Edit Layout link that will refresh the page with the context editor in a dialog box.'),
  );
  $form = system_settings_form($form);
  $form['#submit'][] = 'context_ui_settings_submit';
  return $form;
}