You are here

function _support_clients_load in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support.module \_support_clients_load()

Load all active clients.

3 calls to _support_clients_load()
support_pm_admin_project_form in support_pm/support_pm.admin.inc
support_substatus_admin_form in support_substatus/support_substatus.admin.inc
_support_available_clients in ./support.module
Find all clients we have permission to view/edit.

File

./support.module, line 2557
support.module

Code

function _support_clients_load($path = FALSE) {
  $result = db_query('SELECT clid, path, name FROM {support_client} WHERE status = 1 ORDER BY name');
  while ($client = db_fetch_object($result)) {
    if ($path) {
      $clients[$client->clid] = check_plain($client->path);
    }
    else {
      $clients[$client->clid] = check_plain($client->name);
    }
  }
  drupal_alter('support_clients_load', $clients);
  return $clients;
}