You are here

function support_search_available_clients in Support Ticketing System 6

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

Return array of client ids which current user has access to.

4 calls to support_search_available_clients()
support_db_rewrite_sql in ./support.module
Imeplementation of hook_db_rewrite_sql(). Optionally remove support tickets from content search.
support_page_user in ./support.user.inc
support_search in ./support.module
Implementation of hook _search.
_support_solr_build_subquery in support_solr/support_solr.module
Creates a Solr query for a given user

File

./support.module, line 1973
support.module

Code

function support_search_available_clients() {
  static $clids = NULL;
  if (!is_array($clids)) {
    $clids = array();
    $clients = _support_available_clients();
    foreach ($clients as $clid => $client) {
      $clids[] = $clid;
    }
  }
  return $clids;
}