You are here

function _support_priority_default in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support.module \_support_priority_default()

Return default pid.

2 calls to _support_priority_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.

File

./support.module, line 2656
support.module

Code

function _support_priority_default() {
  static $default = NULL;
  if (!$default) {
    $default = db_result(db_query_range('SELECT pid FROM {support_priority} WHERE isdefault = 1', 0, 1));
  }
  return $default;
}