You are here

function mail_logger_rules_event_info in Mail Logger 6

Implementation of hook_rules_event_info().

File

./mail_logger.rules.inc, line 56
Rules integration with Mail Logger.

Code

function mail_logger_rules_event_info() {
  return array(
    'mail_logger_mail_sent' => array(
      'label' => t('An e-mail has been sent and logged.'),
      'arguments' => array(
        'message' => array(
          'type' => 'mail',
          'label' => t('The sent mail.'),
        ),
        'sender' => array(
          'type' => 'user',
          'label' => t('The message sender.'),
        ),
        'recipient' => array(
          'type' => 'user',
          'label' => t('The message recipient.'),
        ),
        'user' => array(
          'type' => 'user',
          'label' => t('The logged in user.'),
        ),
      ),
      'module' => 'Mail Logger',
    ),
  );
}