function context_condition::editor_form_submit

cis7 context_condition.inc context_condition::editor_form_submit(&$context, $values)
cle7 context_condition.inc context_condition::editor_form_submit(&$context, $values)
elmsmedia7 context_condition.inc context_condition::editor_form_submit(&$context, $values)
icor7 context_condition.inc context_condition::editor_form_submit(&$context, $values)
meedjum_blog7 context_condition.inc context_condition::editor_form_submit(&$context, $values)
mooc7 context_condition.inc context_condition::editor_form_submit(&$context, $values)

Context editor form submit handler.

File

sites/all/modules/ulmus/context/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)));
}