You are here

function og_plugin_argument_validate_group::options_form in Organic groups 7.2

Provide the default form for setting options.

Overrides views_plugin_argument_validate::options_form

File

includes/views/handlers/og_plugin_argument_validate_group.inc, line 26

Class

og_plugin_argument_validate_group
Validate whether an argument is a valid group.

Code

function options_form(&$form, &$form_state) {
  $form['group_type'] = array(
    '#type' => 'select',
    '#title' => t('Group type'),
    '#description' => t('Select the group type.'),
    '#options' => og_get_all_group_entity(),
    '#default_value' => $this->options['group_type'],
    '#required' => og_get_all_group_entity(),
  );
}