public function Role7::role_create

8.0.x Role7.php public Role7::role_create($role_machine_name, $role_human_readable_name = '')
7.x Role7.php public Role7::role_create($role_machine_name, $role_human_readable_name = '')
master Role7.php public Role7::role_create($role_machine_name, $role_human_readable_name = '')

Overrides RoleBase::role_create

1 method overrides Role7::role_create()
Role8::role_create in lib/Drush/Role/Role8.php

File

lib/Drush/Role/Role7.php, line 16

Namespace

Drush\Role

Class

Role7

Code

public function role_create($role_machine_name, $role_human_readable_name = '') {
  return user_role_save((object) array('name' => $role_machine_name));
}