You are here

function defaultcontent_condition::condition_form in Default Content 7

Same name and namespace in other branches
  1. 7.2 context/plugins/defaultcontent_condition.inc \defaultcontent_condition::condition_form()

Condition form.

Overrides context_condition::condition_form

File

context/plugins/defaultcontent_condition.inc, line 14

Class

defaultcontent_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;
}