You are here

function _support_priority_default in Support Ticketing System 7

Same name and namespace in other branches
  1. 6 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_attach in ./support.module
Generate form for adding update to ticket. Enhances comment_form adding a ticket status bar.

File

./support.module, line 3071
support.module

Code

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