function drush_role_create

8.0.x role.drush.inc drush_role_create($rid, $role_name = '')
6.x role.drush.inc drush_role_create($rid, $role_name = '')
7.x role.drush.inc drush_role_create($rid, $role_name = '')
master role.drush.inc drush_role_create($rid, $role_name = '')

Create the specified role

File

commands/core/role.drush.inc, line 125

Code

function drush_role_create($rid, $role_name = '') {
  $role = drush_role_get_class();
  $result = $role->role_create($rid, $role_name);
  if ($result !== FALSE) {
    drush_log(dt('Created "!role"', array('!role' => $rid)), LogLevel::SUCCESS);
  }
  return $result;
}