function commons_shoutbox_shoutbox in Drupal Commons 6.2
Implementation of hook_shoutbox()
File
- modules/
features/ commons_shoutbox/ commons_shoutbox.module, line 58
Code
function commons_shoutbox_shoutbox($op, &$shout, &$a1 = NULL, $form_state = NULL) {
switch ($op) {
case 'link':
// Change the "view all shouts" link to our new path
if ($group = og_get_group_context()) {
$a1 = "node/{$group->nid}/shoutbox";
}
break;
}
}