You are here

function hook_modr8_approve in modr8 7

React to a content being approved.

Parameters

$node: The node object that was being approved.

$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 approved content.
  • title: Title of the approved content
  • type: Type of the approved content
  • preview: Teaser preview of the approved content

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

See also

modr8_approve_content()

1 invocation of hook_modr8_approve()
modr8_approve_content in ./modr8.module
Public API function to approve the given node.

File

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

Code

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