You are here

function og_context_plugin_argument_default_group_context::options_form in Organic groups 7.2

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

og_context/includes/views/handlers/og_context_plugin_argument_default_group_context.inc, line 28
Contains the group context argument default plugin.

Class

og_context_plugin_argument_default_group_context
The group context argument default handler.

Code

function options_form(&$form, &$form_state) {
  $form['group_type'] = array(
    '#type' => 'select',
    '#options' => og_get_all_group_entity(),
    '#title' => t('Group type'),
    '#default_value' => $this->options['group_type'],
    '#description' => t('Determine what entity type that group should be of.'),
  );
  $form['check_access'] = array(
    '#type' => 'checkbox',
    '#title' => t('Check access'),
    '#description' => t('Determines if access to the group should be done. Defaults to "Checked".'),
    '#default_value' => $this->options['check_access'],
  );
}