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.

Overrides context_condition::condition_form_submit

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;
}