You are here

function _support_state in Support Ticketing System 7

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

Helper function, retrieve state name from database.

7 calls to _support_state()
support_comment_view in ./support.module
Implementation of hook_comment_view().
support_mail_tokens in ./support.module
Return an array of token to value mappings for support e-mail messages.
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

... See full list

File

./support.module, line 3098
support.module

Code

function _support_state($state) {
  static $state_name = array();
  if (!isset($state_name[$state])) {
    $state_name[$state] = db_query('SELECT state FROM {support_states} WHERE sid = :sid', array(
      ':sid' => $state,
    ))
      ->fetchField();
  }
  return $state_name[$state];
}