function _support_client in Support Ticketing System 7
Same name and namespace in other branches
- 6 support.module \_support_client()
Helper function, retrieve client name from database.
2 calls to _support_client()
- support_comment_view in ./
support.module - Implementation of hook_comment_view().
- support_search_execute in ./
support.module
File
- ./
support.module, line 3524 - support.module
Code
function _support_client($clid) {
static $client_name = array();
if (!isset($client_name[$clid])) {
$client_name[$clid] = db_query('SELECT name FROM {support_client} WHERE clid = :clid', array(
':clid' => $clid,
))
->fetchField();
}
return $client_name[$clid];
}