You are here

function og_views_arguments in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_views.inc \og_views_arguments()
  2. 5.2 og_views.inc \og_views_arguments()
  3. 5.3 og_views.inc \og_views_arguments()
  4. 5.7 og_views.inc \og_views_arguments()

File

./og_views.inc, line 318

Code

function og_views_arguments() {
  $args = array(
    'gid' => array(
      'name' => t("OG: Group nid(s)"),
      'handler' => 'og_handler_argument_gid',
      'help' => t('Filter for the one or more organic groups. Groups should be specified as a comma or plus delimited list of node ids, like taxonomy URLs. '),
    ),
    'name' => array(
      'name' => t("OG: Group name"),
      'handler' => 'og_handler_argument_group_name_like',
      'option' => array(
        '#type' => 'select',
        '#options' => 'views_handler_operator_like',
      ),
      'help' => t('Filter for the one or more organic groups. Groups should be specified by name, or part of a name. Use the <em>Option</em> field to specify how to match the supplied name.'),
    ),
    'og_uid' => array(
      'name' => t('OG: User is subscribed to group'),
      'handler' => 'og_views_handler_argument_uid',
      'help' => t("Filter for groups that user is subscribed to.  User is specified by user ID (integer).  This argument exposes a user's group subscriptions to other users. Depending on your site, this may be a violation of their privacy. Use it thoughfully."),
    ),
  );
  return $args;
}