You are here

public static function Messaging_Simple::load in Messaging 7

Load from db

1 call to Messaging_Simple::load()
messaging_simple_message_load in messaging_simple/messaging_simple.module
Load callback

File

messaging_simple/messaging_simple.inc, line 64
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Simple
Simple message instance

Code

public static function load($mgid) {
  if ($message = db_query("SELECT * FROM {messaging_simple} WHERE mgid = :mgid", array(
    ':mgid' => $mgid,
  ))
    ->fetchObject()) {
    return self::build_object($message);
  }
}