function _hosting_get_clients in Hostmaster (Aegir) 6
Get 25 clients in a paged query.
2 calls to _hosting_get_clients()
- hosting_client_form_alter in modules/
hosting/ client/ hosting_client.module - Implementation of hook_form_alter().
- hosting_client_list in modules/
hosting/ client/ hosting_client.module - Make a themed list of clients.
File
- modules/
hosting/ client/ hosting_client.module, line 770
Code
function _hosting_get_clients() {
$return = array();
$result = pager_query(db_rewrite_sql('SELECT n.nid, n.title from {node} n WHERE n.type = "client"'), 25);
while ($client = db_fetch_object($result)) {
$return[$client->nid] = $client->title;
}
return $return;
}