You are here

function og_plugin_argument_default_user_groups::option_definition 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::option_definition()

List the options relevant for this plugin.

Overrides views_plugin_argument_default::option_definition

File

includes/views/handlers/og_plugin_argument_default_user_groups.inc, line 17
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 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;
}