I uses this basis code inside a module to adapt the OG Detail block, just uncomment or remove the parts you don't need. /** * Implementation of hook_og_link_alter(). */ function mymodule_og_links_alter(&$links, $group_node) { //drupal_set_message('<pre>'. var_export($group_node,TRUE) .'</pre>'); //drupal_set_message('<pre>'. var_export($links,TRUE) .'</pre>');
//$links['invite'] = 'Blablabla'; // change the invite anchor text //unset ($links['subscribers']); unset ($links['invite']); // Remove invite a friend link from group details block. //unset ($links['manager']); //unset ($links['my_membership']); }
Hans www.koba.be
2009/6/24 A-NO-NE Music madflute@anonemusic.com
Drupal 6.12 OG 6.x-1.3
I am using OG for my classes at a collage. I need to get a better control of OG Detail Block.
I need to hide "invite friend"
I want to change the string where it says Groups to Classes
I want to have this block displayed as soon as a student logs in even
though the node isn't a group node, i.e., <front>.
I thought about it might be better off with View but I couldn't figure out how to change the content per student logged in like OG Detail Block does. Any help would be appreciated.
--
- Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
-- [ Drupal support list | http://lists.drupal.org/ ]