You are here

function oa_messages_node_delete in Open Atrium Core 7.2

Implements hook_node_delete().

File

modules/oa_messages/oa_messages.module, line 368

Code

function oa_messages_node_delete($node) {
  $types = oa_core_list_content_types(TRUE);
  if (!array_key_exists($node->type, $types)) {

    // only create messages for node types we care about
    return;
  }
  $message = oa_messages_create('oa_delete', $node);
}