You are here

function hook_modr8_delete in modr8 7

React to a content being deleted.

Parameters

$node: The node object that was being deleted.

$values: An associative array containing:

  • note: Note to the content author
  • author_uid: UID of the content author
  • log_link: Content moderation log link for the deleted content.
  • title: Title of the deleted content
  • type: Type of the deleted content
  • preview: Teaser preview of the deleted content

$message: The message which was send to the content author. Empty if Send denial messages

See also

modr8_delete_content()

1 invocation of hook_modr8_delete()
modr8_delete_content in ./modr8.module
Public API function to delete the given node.

File

./modr8.api.php, line 48
Defines API hooks for the Modr8 module.

Code

function hook_modr8_delete($node, $values, $message) {
  drupal_set_message(t('Content has been deleted.'));
}