function drush_devel_generate_users

Command callback. Generate a number of users.

1 string reference to 'drush_devel_generate_users'
devel_generate_drush_command in devel_generate/devel_generate.drush.inc
Implementation of hook_drush_command().

File

devel_generate/devel_generate.drush.inc, line 89

Code

function drush_devel_generate_users($num_users = NULL) {
    if (drush_generate_is_number($num_users) == FALSE) {
        return drush_set_error('DEVEL_GENERATE_INVALID_INPUT', t('Invalid number of users.'));
    }
    drush_generate_include_devel();
    $roles = drush_get_option('roles') ? explode(',', drush_get_option('roles')) : array();
    $pass = drush_get_option('pass', NULL);
    devel_create_users($num_users, drush_get_option('kill'), 0, $roles, $pass);
    drush_log(t('Generated @number users.', array(
        '@number' => $num_users,
    )), 'success');
}