I know from the readme that you can use a hook for the group details block, but is there any reason I can't add like:

$links['faq'] = t('Officer FAQ', "faq/68");

in the og_block_details function? I dont want (or know how at this point) to setup a hook in a helper module to add a single static link to the block.

Thanks in advance :)
Nik

Comments

dealancer’s picture

pgillis’s picture

I too have the same problem. I believe the issue is caused by the fact that this module replaces the stock og details block with it's own. In it's own implementation it does not call the alter hook.

Steel Rat’s picture

Is there no way to easily add/remove items from the group details block? I don't want most of the stuff that's shown (all the create content items other than one or two). There are also items there which users aren't supposed to have access to, like creating pages, books, stories, and more. I have custom content types which are only used within groups. I do want the links which show the number of members, invite a friend, etc.

pgillis’s picture

Status: Active » Needs review
StatusFileSize
new739 bytes

As far as I can tell there isn't. The link in comment #1 talks about using the links_alter hook, but this hook is not available as the module is currently implemented. I have attached a patch that adds this functionality back in.