You are here

function hook_og_ui_get_group_admin_alter in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og_ui/og_ui.api.php \hook_og_ui_get_group_admin_alter()

Alter existing group admin menu items.

Parameters

$data: The menu items passed by reference.

$gid: The group being viewed.

1 invocation of hook_og_ui_get_group_admin_alter()
og_ui_get_group_admin in og_ui/og_ui.module
Get all the group admin menu items.

File

og_ui/og_ui.api.php, line 37
Hooks provided by the Organic groups UI module.

Code

function hook_og_ui_get_group_admin_alter(&$data, $context) {

  // Hijack the add people to use a custom implementation.
  if (og_ui_user_access_group('add user', $context['entity_type'], $context['etid'])) {
    $data['add_people']['href'] = 'admin/people/mass-add-user-filter';
  }
}