You are here

function support_search_available_clients in Support Ticketing System 7

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

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

3 calls to support_search_available_clients()
support_page_user in ./support.user.inc
support_query_alter in ./support.module
Implementation of hook_query_alter().
support_search_execute in ./support.module

File

./support.module, line 2403
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;
}