function support_active_clients in Support Ticketing System 7
Same name and namespace in other branches
- 6 support.module \support_active_clients()
Load all active clients.
1 call to support_active_clients()
- support_fetch_client_mail in ./
support.module - Automatically download messages for all active clients.
File
- ./
support.module, line 574 - support.module
Code
function support_active_clients() {
static $clients = NULL;
if (is_null($clients)) {
$result = db_query('SELECT * FROM {support_client} WHERE status = 1');
foreach ($result as $client) {
$clients[$client->clid] = $client;
}
}
return $clients;
}