You are here

function message_instance_delete in Message 6

Message instance delete.

Parameters

$iid: Message instance IDs array.

1 call to message_instance_delete()
message_deleted_entity_cleanup in ./message.module
Delete message instances that are related to a a deleted entity.

File

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

Code

function message_instance_delete($iids = array()) {
  $placeholders = db_placeholders($iids);

  // Delete all message instances.
  db_query("DELETE FROM {message_instance} WHERE iid IN({$placeholders})", explode(',', $iids));
  message_realm_delete_by_message_instance($iids);
}