function og_subgroups_plugin_argument_default_user_groups::options_form in Subgroups for Organic groups 7.2
Provide the default form for setting options.
Overrides views_plugin_argument_default::options_form
File
- plugins/
views/ og_subgroups_plugin_argument_default_user_groups.inc, line 30 - Holds the class defining the Views plugin loading the groups and subgroups the acting user is member of.
Class
- og_subgroups_plugin_argument_default_user_groups
- The class defining the Views plugin loading the groups and subgroups 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'],
);
}