function context_condition_path::condition_form_submit

cis7 context_condition_path.inc context_condition_path::condition_form_submit($values)
cle7 context_condition_path.inc context_condition_path::condition_form_submit($values)
elmsmedia7 context_condition_path.inc context_condition_path::condition_form_submit($values)
icor7 context_condition_path.inc context_condition_path::condition_form_submit($values)
meedjum_blog7 context_condition_path.inc context_condition_path::condition_form_submit($values)
mooc7 context_condition_path.inc context_condition_path::condition_form_submit($values)

Condition form submit handler.

File

sites/all/modules/ulmus/context/plugins/context_condition_path.inc, line 29

Class

context_condition_path
Expose paths as a context condition.

Code

function condition_form_submit($values) {
  $parsed = array();
  $items = explode("\n", $values);
  if (!empty($items)) {
    foreach ($items as $v) {
      $v = trim($v);
      if (!empty($v)) {
        $parsed[$v] = $v;
      }
    }
  }
  return $parsed;
}
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.