function defaultcontent_condition::condition_form_submit in Default Content 7
Same name and namespace in other branches
- 7.2 context/plugins/defaultcontent_condition.inc \defaultcontent_condition::condition_form_submit()
Condition form submit handler.
Overrides context_condition::condition_form_submit
File
- context/
plugins/ defaultcontent_condition.inc, line 26
Class
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;
}