function og_plugin_argument_default_user_groups::options_form

cis7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)
cle7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)
elmsmedia7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)
icor7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)
meedjum_blog7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)
mooc7 og_plugin_argument_default_user_groups.inc og_plugin_argument_default_user_groups::options_form(&$form, &$form_state)

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

sites/all/modules/ulmus/og/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'],
  );
}