By binesh.gummadi on
I installed OG module and it is working great for me. OG has a block which displays links to create different content types(page, story), Invite friend, # of subscribers and admin for the group. I want to remove couple of links from the list.
I created a new php page block-og-0.tpl.php. I can get handle of the array that is passed by OG module. But the question is since OG is passing the links as a one dimensional array, while comparing I have to hard code it to remove links.
How do remove # of subscribers and admin links without modifying OG module and without hardcoding the link names in my block-og-0.tpl.php.
Thanks
Comments
...
I think the easiest solution is to copy OG's code (it's in og_block_details() and og_og_block_details()) and modify it to your liking.
where should I place the code?
Thanks for your quick reply, where should I place the code once I copy it from the above function(og_og_block_details()).
...
Where? Wherever you can. I'd put the function in my template file. Of course, you need to change its name. And make it return a string, not an array. Then I'd create a custom PHP block and call this function from there.
Any joy?
I've got the same issue. Would be great if you could post a solution if you found one. I didn't quite follow the last suggestion.
Cheers