JUserHelper::setUserGroups
Method to set the groups for a user.
Signature
public function setUserGroups(integer
$userId,
array
$groupsĀ )
Parameters
-
$userId
- The id of the user.
-
$groups
- An array of group ids to put the user in.
Returns
- boolean
- True on success