protected function showEditUserGroupsForm($user, $groups)
 {
     // override the $groups that is passed, which will be
     // the user's local groups
     $groups = efGURgetGroups($user);
     parent::showEditUserGroupsForm($user, $groups);
 }
/** 
 * Hook function for UserEffectiveGroups
 * Adds any global groups the user has to $groups
 *
 * @param $user instance of User
 * @param &$groups array of groups the user is in
 */
function efAddGlobalUserrights($user, &$groups)
{
    $groups = array_merge($groups, efGURgetGroups($user));
    $groups = array_unique($groups);
    return true;
}