I uses this basis code inside a module to adapt the OG Detail block, just uncomment or remove the parts you don't need.<div><br></div><div><div>/**</div><div>* Implementation of hook_og_link_alter().</div><div>*/</div>
<div>function mymodule_og_links_alter(&$links, $group_node) {</div><div>//drupal_set_message('<pre>'. var_export($group_node,TRUE) .'</pre>');</div><div>//drupal_set_message('<pre>'. var_export($links,TRUE) .'</pre>');</div>
<div><br></div><div> //$links['invite'] = 'Blablabla'; // change the invite anchor text</div><div> //unset ($links['subscribers']);</div><div> unset ($links['invite']); // Remove invite a friend link from group details block.</div>
<div> //unset ($links['manager']);</div><div> //unset ($links['my_membership']);</div><div>} </div><div><br></div><div><br></div>Hans</div><div><a href="http://www.koba.be">www.koba.be</a></div><div><br>
<div class="gmail_quote">2009/6/24 A-NO-NE Music <span dir="ltr"><<a href="mailto:madflute@anonemusic.com">madflute@anonemusic.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Drupal 6.12<br>
OG 6.x-1.3<br>
<br>
I am using OG for my classes at a collage. I need to get a better control of OG Detail Block.<br>
<br>
- I need to hide "invite friend"<br>
<br>
- I want to change the string where it says Groups to Classes<br>
<br>
- 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>.<br>
<br>
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.<br>
<br>
<br>
--<br>
- Hiro<br>
<br>
Hiroaki Honshuku, A-NO-NE Music, Greater Boston<br>
<a href="http://a-no-ne.com" target="_blank">http://a-no-ne.com</a> <a href="http://anonemusic.com" target="_blank">http://anonemusic.com</a><br><font color="#888888">
<br>
--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Hans Rossel<br>KOBA Webdevelopment<br>Kerkstraat 228<br>9050 Gent<br>09-334.52.60<br>0472-79.32.16<br><a href="http://www.koba.be">www.koba.be</a><br><a href="mailto:info@koba.be">info@koba.be</a><br>
</div>