You are here

function votingapi_generate_get_users in Voting API 5

1 call to votingapi_generate_get_users()
votingapi_generate_create_votes in ./votingapi_generate.module

File

./votingapi_generate.module, line 50

Code

function votingapi_generate_get_users() {
  $users = array();
  $result = db_query("SELECT uid FROM {users}");
  while ($user = db_fetch_object($result)) {
    $users[] = $user->uid;
  }
  return $users;
}