You are here

function context_condition::editor_form_submit in Context 6

Same name and namespace in other branches
  1. 6.3 plugins/context_condition.inc \context_condition::editor_form_submit()
  2. 7.3 plugins/context_condition.inc \context_condition::editor_form_submit()

Context editor form submit handler.

File

plugins/context_condition.inc, line 112

Class

context_condition
Base class for a context condition.

Code

function editor_form_submit(&$context, $values) {

  // Merge existing values in from non-active conditions.
  $existing = $this
    ->fetch_from_context($context, 'values');
  $values += !empty($existing) ? $existing : array();
  ksort($values);

  // Editor forms are generally checkboxes -- do some checkbox processing.
  return drupal_map_assoc(array_keys(array_filter($values)));
}