API17:JUserHelper::addUserToGroup
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JUserHelper::addUserToGroup
Description
Method to add a user to a group.
Description:JUserHelper::addUserToGroup [Edit Descripton]
public static function addUserToGroup ( $userId $groupId )
| Parameter | Type | Default | Description |
|---|---|---|---|
| $userId | integer | The id of the user. | |
| $groupId | integer | The id of the group. |
- Returns mixed Boolean true on success, on error.
- Defined on line 35 of libraries/joomla/user/helper.php
- Since
See also
-
JUserHelper::addUserToGroup source code on BitBucket
-
Class JUserHelper
-
Subpackage User
- Other versions of JUserHelper::addUserToGroup
SeeAlso:JUserHelper::addUserToGroup [Edit See Also]
User contributed notes
<CodeExamplesForm />
