assign user role only update og_user_roles table but not user_role
Posted by phcdrupal on June 10, 2011 at 2:07pm
I use og_user_roles module to assign user role when registered users join a group or create a group. I'm trying to assign "authenticated group user" role for join a group and "group owner" role for creating a group. However, it only updated og_user_roles table but not user_roles table.
I did try to trigger an action as well. It did run the code in function views_bulk_operations_user_roles_action() in user_roles.action.inc and function user_save() in user.module.
It did come in to the code below: (in user_save() function)
foreach (array_keys($array['roles']) as $rid) {