You are here

function support_active_clients in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 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 528
support.module

Code

function support_active_clients() {
  static $clients = NULL;
  if (is_null($clients)) {
    $result = db_query('SELECT * FROM {support_client} WHERE status = 1');
    while ($client = db_fetch_object($result)) {
      $clients[$client->clid] = $client;
    }
  }
  return $clients;
}