You are here

function og_subgroups_plugin_argument_default_user_groups::option_definition in Subgroups for Organic groups 7.2

List the options relevant for this plugin.

Overrides views_plugin_argument_default::option_definition

File

plugins/views/og_subgroups_plugin_argument_default_user_groups.inc, line 18
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 option_definition() {
  $options = parent::option_definition();
  $groups = og_get_all_group_entity();
  $options['group_type'] = array(
    'default' => key($groups),
  );
  $options['glue'] = array(
    'default' => '+',
  );
  return $options;
}