OG Details Block
Submitted by GeorgeS on Thu, 06/25/2009 - 13:19
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']);
}
Bookmark/Search this post with:
»
- GeorgeS's blog
- Login or register to post comments
Delicious
Digg
Facebook
Technorati