function _support_state in Support Ticketing System 6
Same name and namespace in other branches
- 7 support.module \_support_state()
Helper function, retrieve state name from database.
8 calls to _support_state()
- support_comment_view in ./
support.module - Display state, priority and client when viewing comments for support nodes.
- 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
File
- ./
support.module, line 2674 - support.module
Code
function _support_state($state) {
static $state_name = array();
if (!isset($state_name[$state])) {
$state_name[$state] = db_result(db_query('SELECT state FROM {support_states} WHERE sid = %d', $state));
}
return $state_name[$state];
}