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)));
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.