You are here

function _support_solr_client_name in Support Ticketing System 6

Callback to get the client name given an is_support_client value.

1 call to _support_solr_client_name()
theme_apachesolr_breadcrumb_is_support_client in support_solr/support_solr.module
Theme client breadcrumb
1 string reference to '_support_solr_client_name'
support_solr_support_solr_info in support_solr/support_solr.module
Implementation of hook_support_solr_info().

File

support_solr/support_solr.module, line 194
Apache Solr search for support module.

Code

function _support_solr_client_name($facet) {
  if (!$facet) {
    return t('Unknown');
  }
  $result = db_fetch_object(db_query('SELECT parent FROM {support_client} WHERE clid = %d', $facet));
  if ($result->parent) {
    return check_plain(_support_client($result->parent) . '/' . _support_client($facet));
  }
  else {
    return check_plain(_support_client($facet));
  }
}