function jammer_message_load in Jammer 7
Same name and namespace in other branches
- 6 jammer_messages.module \jammer_message_load()
Load jammed message to verify they exist.
Return value
object
File
- ./
jammer_messages.module, line 58 - Filter status messages set by drupal_set_message().
Code
function jammer_message_load($mid) {
$result = db_select('jammer_messages', 'j')
->fields('j', array(
'mid',
'message_string',
))
->condition('mid', $mid)
->range(0, 1)
->execute();
return $result ? $result
->fetchObject() : FALSE;
}