function _support_state_secondary in Support Ticketing System 7
Same name and namespace in other branches
- 6 support.module \_support_state_secondary()
Return secondary sid.
1 call to _support_state_secondary()
- _support_status_form_attach in ./
support.module - Generate form for adding update to ticket. Enhances comment_form adding a ticket status bar.
File
- ./
support.module, line 3036 - support.module
Code
function _support_state_secondary() {
static $secondary = NULL;
if (!$secondary) {
$secondary = db_query_range('SELECT sid FROM {support_states} WHERE phase2 = :phase2 ORDER BY weight ASC', 0, 1, array(
':phase2' => 1,
))
->fetchField();
}
return $secondary;
}