public function UserSingle7::removeRole

8.0.x UserSingle7.php public UserSingle7::removeRole($rid)
7.x UserSingle7.php public UserSingle7::removeRole($rid)
master UserSingle7.php public UserSingle7::removeRole($rid)

Remove a role from the current user.

Parameters

$rid: A role ID.

Overrides UserSingleBase::removeRole

File

lib/Drush/User/UserSingle7.php, line 19

Namespace

Drush\User

Class

UserSingle7

Code

public function removeRole($rid) {
  user_multiple_role_edit(array($this->account->uid), 'remove_role', $rid);
}