function message_instance_load in Message 6
Message instance load.
Parameters
$iid: The message instance ID.
Return value
A message instance object.
See also
message_instance_load_multiple.
3 calls to message_instance_load()
- message_data_type_message_instance::load in includes/
message.rules.inc - Loads the data identified with an identifier as returned by get_identifier(). Just return the data or FALSE if loading the data failed.
- message_handler_field_message_render::render in includes/
message_handler_field_message_render.inc - message_instance_save in ./
message.module - Message instance save.
File
- ./
message.module, line 394 - API functions to manipulate messages.
Code
function message_instance_load($iid) {
$messages = message_instance_load_multiple(array(
$iid,
));
return !empty($messages[$iid]) ? $messages[$iid] : FALSE;
}