function _biblio_admin_build_user_select in Bibliography Module 5
Same name and namespace in other branches
- 6.2 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
- 6 biblio.import.export.inc \_biblio_admin_build_user_select()
- 7 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
- 7.2 includes/biblio.import.export.inc \_biblio_admin_build_user_select()
1 call to _biblio_admin_build_user_select()
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;
}