function context_condition::editor_form_submit in Context 6
Same name and namespace in other branches
- 6.3 plugins/context_condition.inc \context_condition::editor_form_submit()
- 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)));
}