You are here

function _support_client in Support Ticketing System 6

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

Helper function, retrieve client name from database.

4 calls to _support_client()
support_comment_view in ./support.module
Display state, priority and client when viewing comments for support nodes.
support_page_form in ./support.module
Display tickets
support_search in ./support.module
Implementation of hook _search.
_support_solr_client_name in support_solr/support_solr.module
Callback to get the client name given an is_support_client value.

File

./support.module, line 3319
support.module

Code

function _support_client($clid) {
  static $client_name = array();
  if (!isset($client_name[$clid])) {
    $client_name[$clid] = db_result(db_query('SELECT name FROM {support_client} WHERE clid = %d', $clid));
  }
  return $client_name[$clid];
}