You are here

function og_plugin_argument_default_user_groups::options_form in Organic groups 7.2

Same name and namespace in other branches
  1. 7 includes/views/og_plugin_argument_default_user_groups.inc \og_plugin_argument_default_user_groups::options_form()

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

includes/views/handlers/og_plugin_argument_default_user_groups.inc, line 29
Holds the class defining the Views plugin loading the groups the acting user is member of.

Class

og_plugin_argument_default_user_groups
The class defining the Views plugin loading the groups of the acting user.

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(),
  );
  $form['glue'] = array(
    '#type' => 'select',
    '#title' => t('Concatenator'),
    '#description' => t('Select the concatenator used to merge multiple group IDs. Remember to turn on the "Allow multiple values" option in the "more" settings for this contextual filter.'),
    '#options' => array(
      '+' => '+',
      ',' => ',',
    ),
    '#default_value' => $this->options['glue'],
  );
}