You are here

function hook_og_ui_get_group_admin_alter in Organic groups 7

Same name and namespace in other branches
  1. 7.2 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 module.

Code

function hook_og_ui_get_group_admin_alter(&$data, $gid) {

  // Hijack the add people to use a custom implementation.
  $items['add_people']['href'] = 'admin/people/custom-add-user';
}