You are here

function message_save in Message 6

Same name and namespace in other branches
  1. 7 message.module \message_save()

Inserts or updates a message object into the database.

Parameters

$message: The message object to be inserted.

Return value

Failure to write a record will return FALSE. Otherwise SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.

1 call to message_save()
message_data_type_message::save in includes/message.rules.inc
Makes changes to the data permanent. Implement it, if your data type is savable.

File

./message.module, line 337
API functions to manipulate messages.

Code

function message_save($message) {
  ctools_include('export');
  return ctools_export_crud_save('message', $message);
}