You are here

function message_nodeapi in Message 6

Implementation of hook_nodeapi().

File

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

Code

function message_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {

  // Advanced implementation may want to disable the cleanup and do it
  // themselves.
  if (!variable_get('message_entity_delete_cleanup', TRUE)) {
    return;
  }

  // Preform basic clean up when a node is deleted.
  if ($op == 'delete') {
    message_deleted_entity_cleanup('node', $node->nid);
  }
}