function context_condition_node::options_form

cis7 context_condition_node.inc context_condition_node::options_form($context)
cle7 context_condition_node.inc context_condition_node::options_form($context)
elmsmedia7 context_condition_node.inc context_condition_node::options_form($context)
icor7 context_condition_node.inc context_condition_node::options_form($context)
meedjum_blog7 context_condition_node.inc context_condition_node::options_form($context)
mooc7 context_condition_node.inc context_condition_node::options_form($context)

Options form. Provide additional options for your condition.

Overrides context_condition::options_form

1 method overrides context_condition_node::options_form()
date_context_date_condition::options_form in sites/all/modules/ulmus/date/date_context/plugins/date_context_date_condition.inc
Options form. Provide additional options for your condition.

File

sites/all/modules/ulmus/context/plugins/context_condition_node.inc, line 30

Class

context_condition_node
Expose node views/node forms of specific node types as a context condition.

Code

function options_form($context) {
  $defaults = $this->fetch_from_context($context, 'options');
  return array(
    'node_form' => array(
      '#title' => t('Set on node form'),
      '#type' => 'select',
      '#options' => array(
        CONTEXT_NODE_VIEW => t('No'),
        CONTEXT_NODE_FORM => t('Yes'),
        CONTEXT_NODE_FORM_ONLY => t('Only on node form'),
      ),
      '#description' => t('Set this context on node forms'),
      '#default_value' => isset($defaults['node_form']) ? $defaults['node_form'] : TRUE,
    ),
  );
}