You are here

function _biblio_admin_build_user_select in Bibliography Module 5

Same name and namespace in other branches
  1. 6.2 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
  2. 6 biblio.import.export.inc \_biblio_admin_build_user_select()
  3. 7 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
  4. 7.2 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
1 call to _biblio_admin_build_user_select()
biblio_form_import in ./biblio.module

File

./biblio.module, line 2782

Code

function _biblio_admin_build_user_select($my_uid) {
  $sql = 'SELECT DISTINCT u.uid, u.name, u.status, u.mail FROM {users} u  WHERE u.uid != 0 ';
  $result = db_query($sql);
  while ($user = db_fetch_object($result)) {
    $users[$user->uid] = $user->name . " ({$user->mail})";
  }
  asort($users);
  $select = array(
    '#type' => 'select',
    '#title' => t("Set user ID of entries in this file to"),
    '#options' => $users,
    '#default_value' => $my_uid,
  );
  return $select;
}