You are here

function hook_og_create_links in Organic groups 6.2

Define links to be added to the Group Details block.

Parameters

$group: Group node object for currently active group.

Return value

Associative array of links.

1 function implements hook_og_create_links()

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

og_og_create_links in ./og.module
Implementation of hook_og_create_links().
1 invocation of hook_og_create_links()
og_details_links in ./og.module
Create group-contextual links, such as the group details block.

File

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

Code

function hook_og_create_links($goup) {
  $links = array();

  // Add a link to contact the group owner.
  if (module_exists('contact')) {
    $links['contact_owner'] = l(t('Contact Owner'), 'user/' . $group->uid . '/contact');
  }
  return $links;
}