function _support_clients_load in Support Ticketing System 7
Same name and namespace in other branches
- 6 support.module \_support_clients_load()
Load all active clients.
2 calls to _support_clients_load()
- support_pm_admin_project_form in support_pm/
support_pm.admin.inc - _support_available_clients in ./
support.module - Find all clients we have permission to view/edit.
File
- ./
support.module, line 2971 - support.module
Code
function _support_clients_load($path = FALSE) {
$clients = array();
$result = db_query('SELECT clid, path, name FROM {support_client} WHERE status = :status ORDER BY name', array(
':status' => 1,
));
foreach ($result as $client) {
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;
}