You are here

function devel_get_users in Devel 7

Same name and namespace in other branches
  1. 5 devel_generate.inc \devel_get_users()
  2. 6 devel_generate.inc \devel_get_users()
1 call to devel_get_users()
devel_generate_content_pre_node in devel_generate/devel_generate.inc
Pre-process the devel_generate_content_form request. This is needed so batch api can get the list of users once. This is used by both the batch and non-batch branches of the code.

File

devel_generate/devel_generate.inc, line 580

Code

function devel_get_users() {
  $users = array();
  $result = db_query_range("SELECT uid FROM {users}", 0, 50);
  foreach ($result as $record) {
    $users[] = $record->uid;
  }
  return $users;
}