function context_condition_node_taxonomy::condition_form in Context 6
Same name and namespace in other branches
- 6.3 plugins/context_condition_node_taxonomy.inc \context_condition_node_taxonomy::condition_form()
- 7.3 plugins/context_condition_node_taxonomy.inc \context_condition_node_taxonomy::condition_form()
Condition form.
Overrides context_condition::condition_form
File
- plugins/
context_condition_node_taxonomy.inc, line 21
Class
- context_condition_node_taxonomy
- Expose node taxonomy terms as a context condition.
Code
function condition_form($context) {
$form = parent::condition_form($context);
$form['#type'] = 'select';
$form['#size'] = 12;
$form['#multiple'] = TRUE;
$form['#options'] = taxonomy_form_all();
return $form;
}