function _hosting_get_clients in Hosting 5
Same name and namespace in other branches
- 6.2 client/hosting_client.module \_hosting_get_clients()
- 7.4 client/hosting_client.module \_hosting_get_clients()
- 7.3 client/hosting_client.module \_hosting_get_clients()
1 call to _hosting_get_clients()
- hosting_client_list in client/
hosting_client.module
File
- client/
hosting_client.module, line 515
Code
function _hosting_get_clients() {
$return = array();
$result = pager_query(db_rewrite_sql('SELECT nid, name from {hosting_client} AS h INNER JOIN {node} n ON n.nid = h.nid AND n.vid = h.vid'), 25);
while ($client = db_fetch_object($result)) {
$return[$client->nid] = $client->name;
}
return $return;
}