privatemsg_rules.module

  1. 7-1 privatemsg_rules/privatemsg_rules.module
  2. 7-2 privatemsg_rules/privatemsg_rules.module
  3. 6-2 privatemsg_rules/privatemsg_rules.module

Hooks and callback functions for rules.module integration.

File

privatemsg_rules/privatemsg_rules.module
View source
  1. <?php
  2. /**
  3. * @file
  4. * Hooks and callback functions for rules.module integration.
  5. */
  6. /**
  7. * Implements hook_rules_privatemsg_message_insert().
  8. */
  9. function privatemsg_rules_privatemsg_message_insert($message) {
  10. foreach ($message->recipients as $recipient) {
  11. if ($recipient->type == 'user') {
  12. rules_invoke_event('privatemsg_insert', $message, $recipient);
  13. }
  14. }
  15. }

Functions

Namesort descending Description
privatemsg_rules_privatemsg_message_insert Implements hook_rules_privatemsg_message_insert().