You are here

function privatemsg_rules_rules_event_info in Privatemsg 6.2

Same name and namespace in other branches
  1. 7.2 privatemsg_rules/privatemsg_rules.rules.inc \privatemsg_rules_rules_event_info()
  2. 7 privatemsg_rules/privatemsg_rules.rules.inc \privatemsg_rules_rules_event_info()

Implements hook_rules_event_info().

File

privatemsg_rules/privatemsg_rules.rules.inc, line 61
Hooks and callback functions for rules.module integration.

Code

function privatemsg_rules_rules_event_info() {
  return array(
    'privatemsg_insert' => array(
      'label' => t('A message is sent'),
      'module' => 'Privatemsg',
      'arguments' => array(
        'subject' => array(
          'type' => 'string',
          'label' => t('Subject of the message'),
        ),
        'body' => array(
          'type' => 'string',
          'label' => t('Body of the message'),
        ),
        'author' => array(
          'type' => 'user',
          'label' => t('Author of the message'),
        ),
        'recipient' => array(
          'type' => 'user',
          'label' => t('Recipient of the message.'),
        ),
        'mid' => array(
          'type' => 'int',
          'label' => t('Privatemsg message id'),
        ),
        'thread_id' => array(
          'type' => 'int',
          'label' => t('Privatemsg thread id'),
        ),
      ),
    ),
  );
}