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'],
  );
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.