function context_condition::condition_form

cis7 context_condition.inc context_condition::condition_form($context)
cle7 context_condition.inc context_condition::condition_form($context)
elmsmedia7 context_condition.inc context_condition::condition_form($context)
icor7 context_condition.inc context_condition::condition_form($context)
meedjum_blog7 context_condition.inc context_condition::condition_form($context)
mooc7 context_condition.inc context_condition::condition_form($context)

Condition form.

4 methods override context_condition::condition_form()
context_condition_menu::condition_form in sites/all/modules/ulmus/context/plugins/context_condition_menu.inc
Override of condition_form(). Use multiselect widget.
context_condition_node_taxonomy::condition_form in sites/all/modules/ulmus/context/plugins/context_condition_node_taxonomy.inc
Condition form.
context_condition_path::condition_form in sites/all/modules/ulmus/context/plugins/context_condition_path.inc
Condition form.
context_var_context_condition::condition_form in sites/all/modules/elmsln_contrib/context_var/plugins/context_var_context_condition.inc
Condition form.

File

sites/all/modules/ulmus/context/plugins/context_condition.inc, line 48

Class

context_condition
Base class for a context condition.

Code

function condition_form($context) {
  return array(
    '#title' => $this->title,
    '#description' => $this->description,
    '#options' => $this->condition_values(),
    '#type' => 'checkboxes',
    '#default_value' => $this->fetch_from_context($context, 'values'),
  );
}