You are here

function context_og_condition_member_status::options_form in Context OG 6.3

Same name and namespace in other branches
  1. 7.2 plugins/context_og_condition_member_status.inc \context_og_condition_member_status::options_form()

File

plugins/context_og_condition_member_status.inc, line 16

Class

context_og_condition_member_status
Expose organic groups member status 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' => 'checkbox',
      '#description' => t('Set this context on node forms'),
      '#default_value' => isset($defaults['node_form']) ? $defaults['node_form'] : TRUE,
    ),
  );
}