You are here

function hook_og_links_alter in Organic groups 6.2

Remove or modify links in the Group Details block.

Parameters

$links: Array of links.

$group: Group node object for currently active group.

1 function implements hook_og_links_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

og_views_og_links_alter in modules/og_views/og_views.module
Implementation of hook_og_links_alter().
1 invocation of hook_og_links_alter()
og_details_links in ./og.module
Create group-contextual links, such as the group details block.

File

./og.api.php, line 89
Hooks provided by the Organic Groups module.

Code

function hook_og_links_alter(&$links, $group) {

  // Match a customized path to the contact form.
  if (isset($links['contact_owner'])) {
    $links['contact_owner'] = l(t('Contact Owner'), 'contact/user/' . $group->uid);
  }
}