Closed (fixed)
Project:
OG User Roles
Version:
5.x-3.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
27 Apr 2008 at 11:19 UTC
Updated:
9 Jun 2008 at 18:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
Sebo commentedIf you want to customize the 'Group details' block, here are some hints (copy/pasted) from the OG readme.txt:
To remove the 'create content' item from this block, here is the function I wrote according to the preceeding guideline:
To get the name of the item to remove, you can just add a print_r($links) to this function: it will show you all the items ready to be themed. You can remove them using the same kind of 'unset' instruction (this is how I figured out that the 'Create content' item has the key '0').
I hope it helps.
Comment #2
mikox commentedThank you, with your help I could change the `Group details' menu the way I wanted.
But it still seems strange to me that with the standard installation of OG User Roles (since 5.x-2.7) the content types are shown twice in this menu (as described before); I believe this is only in the interest of a small minority of users.
Comment #3
kimadactyl commentedThis function does it the other way round and gets rid of everything *but* the create content link.
Comment #4
somebodysysop commentedThanks dar-es-balat. I decided to incorporate your code as an option.
Try this patch against a clean download of the 3.1 release.
On the 'Edit' form of the group, you will find an option to display 'Create content' and remove the default OG 'Create ..."
Hopefully this will satisfy everyone.
Comment #5
somebodysysop commentedComment #6
somebodysysop commentedThe modifications will be included in the 3.2 release.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.