function _support_state_default in Support Ticketing System 6
Same name and namespace in other branches
- 7 support.module \_support_state_default()
Return default sid.
3 calls to _support_state_default()
- support_save_message in ./
support.module - Save the message.
- support_status_form in ./
support.module - Generate form for adding update to ticket. Enhances comment_form adding a ticket status bar.
- _support_get_state in ./
support.module
File
- ./
support.module, line 2610 - support.module
Code
function _support_state_default() {
static $default = NULL;
if (!$default) {
$default = db_result(db_query_range('SELECT sid FROM {support_states} WHERE isdefault = 1 ORDER BY weight ASC', 0, 1));
}
return $default;
}