You are here

function message_type_save in Message 7

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_type_save()
message_admin_text_copy_batch in ./message.module
Batch callback. Copy the message text fields from one language to others.

File

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

Code

function message_type_save($message) {
  return entity_save('message_type', $message);
}