Hi Hiro,
Thank you so much for you response (again :-)
I must admit I do not know how to implement this. When you say "inside the module", do I need to hack the book.module file, or create a tpl,php file instead?On 09/06/24(水), at 5:39, KOBA | Hans Rossel wrote:
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/ ]
--
Hans Rossel
KOBA Webdevelopment
Kerkstraat 228
9050 Gent
09-334.52.60
0472-79.32.16
www.koba.be
info@koba.be
--
[ Drupal support list | http://lists.drupal.org/ ]
--
[ Drupal support list | http://lists.drupal.org/ ]