function message_load in Message 7
Same name and namespace in other branches
- 6 message.module \message_load()
Message load.
Parameters
$mid: The message ID.
Return value
Message A message object.
3 calls to message_load()
- MessageCrud::testMessageCrud in tests/
message.test - Test CRUD of message entity.
- MessageEntityDelete::testReferencedEntitiesDelete in tests/
message.test - Test deletion of a message after its referenced entities have been deleted.
- message_handler_field_message_render::render in includes/
views/ handlers/ message_handler_field_message_render.inc - Render the field.
File
- ./
message.module, line 909 - API functions to manipulate messages.
Code
function message_load($mid) {
$result = entity_load('message', array(
$mid,
));
return $result ? reset($result) : FALSE;
}