function shoutbox_group_og_links_alter in Shoutbox 6.2
Same name and namespace in other branches
- 7.2 shoutbox_group/shoutbox_group.module \shoutbox_group_og_links_alter()
- 7 shoutbox_group/shoutbox_group.module \shoutbox_group_og_links_alter()
Implementation of hook_og_links_alter()
Add a shoutbox link to OG menu block
File
- shoutbox_group/
shoutbox_group.module, line 179
Code
function shoutbox_group_og_links_alter(&$links) {
if (user_access('view shouts')) {
if ($group = og_get_group_context()) {
$links['shoutbox'] = l(t('Shout box'), "shoutbox/group/{$group->nid}");
}
}
}