function _support_state_default in Support Ticketing System 7
Same name and namespace in other branches
- 6 support.module \_support_state_default()
Return default sid.
3 calls to _support_state_default()
- support_save_message in ./
support.module - Save the message.
- _support_get_state in ./
support.module - _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 3025 - support.module
Code
function _support_state_default() {
static $default = NULL;
if (!$default) {
$default = db_query_range('SELECT sid FROM {support_states} WHERE isdefault = :isdefault ORDER BY weight ASC', 0, 1, array(
':isdefault' => 1,
))
->fetchField();
}
return $default;
}