URL like 'og/users/%node/add_user' is not working when module is installed. Is it by design?
May be better disable this tab at all? I know how to do it.
But I think it's mistake.
Thanks.

Comments

vladsavitsky’s picture

Ok. I have found your comment in code:

If enabled, redirect standard "add users" link to groupadmin.
@todo Consider whether it would be better to hide the tab altogether.

To hide tab use this:

/**
* Implementation of hook_menu_alter().
* Remember to clear the menu cache after adding/editing this function.
*/
function groupadmin_menu_alter(&$items) {
  unset($items['og/users/%node/add_user']);
}
andy inman’s picture

Assigned: Unassigned » andy inman
Status: Active » Needs work

@VladSavitsky thanks for the code. There was a reason why it was done as a redirect - ISTR it was a last minute addition to the requirement of the original client, but to be honest I can't really remember. As the todo says, hiding the tab may be better, and probably makes more sense. I will implement your suggestion.

andy inman’s picture

Status: Needs work » Needs review

Now committed. (Also added option to disable display/search of email addresses.)

andy inman’s picture

Status: Needs review » Closed (fixed)

Closing, seems to work fine.