function shoutbox_group_og_links_alter in Shoutbox 7.2
Same name and namespace in other branches
- 6.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 192
Code
function shoutbox_group_og_links_alter(&$links) {
if (user_access('access shoutbox')) {
if ($group = og_context()) {
$links['shoutbox'] = l(t('Shout box'), "shoutbox/group/{$group->etid}");
}
}
}