You are here

function filedepot_getUserOptions in filedepot 7

Same name and namespace in other branches
  1. 6 lib-common.php \filedepot_getUserOptions()
2 calls to filedepot_getUserOptions()
template_preprocess_filedepot_folderperms in ./lib-theme.php
template_preprocess_filedepot_folderperms_ogenabled in ./lib-theme.php

File

./lib-common.php, line 293
lib-common.php Common library of functions for the applications

Code

function filedepot_getUserOptions() {
  $retval = '';
  $query = db_query("SELECT u.uid, u.name,u.status FROM {users} u WHERE u.status = 1 ORDER BY name");
  while ($u = $query
    ->fetchObject()) {
    $retval .= '<option value = "' . $u->uid . '">' . $u->name . '</option>';
  }
  return $retval;
}