You are here

privatemsg_rules.module in Privatemsg 7

Hooks and callback functions for rules.module integration.

File

privatemsg_rules/privatemsg_rules.module
View source
<?php

/**
 * @file
 * Hooks and callback functions for rules.module integration.
 */

/**
 * Implements hook_rules_privatemsg_message_insert().
 */
function privatemsg_rules_privatemsg_message_insert($message) {
  foreach ($message->recipients as $recipient) {
    if ($recipient->type == 'user') {
      rules_invoke_event('privatemsg_insert', $message, $recipient);
    }
  }
}

Functions

Namesort descending Description
privatemsg_rules_privatemsg_message_insert Implements hook_rules_privatemsg_message_insert().