You are here

function jammer_message_load in Jammer 6

Same name and namespace in other branches
  1. 7 jammer_messages.module \jammer_message_load()

Load jammed message to verify they exist.

Return value

object

File

./jammer_messages.module, line 60
Filter status messages set by drupal_set_message().

Code

function jammer_message_load($mid) {
  $result = db_query_range('SELECT mid, message_string FROM {jammer_messages} WHERE mid = %d', $mid, 0, 1);
  return $result ? db_fetch_object($result) : FALSE;
}