function context_var_context_condition::condition_form in Context: Variable 6
Same name and namespace in other branches
- 7 plugins/context_var_context_condition.inc \context_var_context_condition::condition_form()
Condition form.
File
- plugins/
context_var_context_condition.inc, line 18 - This class extends the context_condition
Class
- context_var_context_condition
- @file This class extends the context_condition
Code
function condition_form($context) {
$form = parent::condition_form($context);
unset($form['#options']);
$form['#type'] = 'textarea';
$form['#description'] = 'Map values as database variable|value. This will also accept variable|index:value in the case of arrays that are stored in the drupal variable table. %theme can be used to replace it with the current theme in use, accounting for og_theme';
$form['#default_value'] = implode("\n", $this
->fetch_from_context($context, 'values'));
return $form;
}