Drupal 6.0

adding support for detecting group context (for example - this is an issue with OG Forums or whatever modules that load later on in the process of modules bootstrapping).

Comments

lirantal’s picture

(This is ofcourse something also related to OG itself of detecting context but since OGUR is implementing it's own then it applies here too)

Please see patch and apply.

lirantal’s picture

Actually, here's a fix to the former patch which is a safer method of just getting correctly the url segment.

sun’s picture

Status: Needs review » Closed (won't fix)

This function is a copy of the original og_determine_context()
http://drupalcode.org/project/og.git/blob/refs/heads/6.x-2.x:/og.module#...

og_user_roles won't diverge from the original. The copy is only required to make the privilege escalation possible (see code comments).