function context_condition_path::condition_form in Context 6.3
Same name and namespace in other branches
- 6 plugins/context_condition_path.inc \context_condition_path::condition_form()
- 7.3 plugins/context_condition_path.inc \context_condition_path::condition_form()
Condition form.
Overrides context_condition::condition_form
File
- plugins/
context_condition_path.inc, line 17
Class
- context_condition_path
- Expose paths as a context condition.
Code
function condition_form($context) {
$form = parent::condition_form($context);
unset($form['#options']);
$form['#type'] = 'textarea';
$form['#default_value'] = implode("\n", $this
->fetch_from_context($context, 'values'));
return $form;
}