You are here

function support_queue_url in Support Ticketing System 7

Get the correct url for a support queue, given a client.

4 calls to support_queue_url()
support_overview_page_user in support_overview/support_overview.module
support_overview_summary in support_overview/support_overview.module
Display support ticket overview, highlighting ticket queues with tickets older than a configurable age limit.
support_page_form in ./support.module
Display tickets
support_page_user in ./support.user.inc

File

./support.module, line 3906
support.module

Code

function support_queue_url($client) {
  if ($client->parent == 0) {
    return "support/{$client->path}";
  }
  else {

    // subclient support.
    if ($parent = support_client_load($client->parent)) {
      return "support/{$parent->path}/{$client->path}";
    }
    else {
      return "support/{$client->path}";
    }
  }
}