OG Details Block

In order to get better control of OG details Block. For example

To hide "invite Friend"

Change a string where it sayd Group to Classes

I use 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']);