You are here

function views_send_rules_event_info in Views Send 8

Same name and namespace in other branches
  1. 7 views_send.rules.inc \views_send_rules_event_info()

Implementation of hook_rules_event_info().

File

./views_send.rules.inc, line 6

Code

function views_send_rules_event_info() {
  $defaults = array(
    'group' => t('Views Send'),
  );
  return array(
    'views_send_email_sent' => $defaults + array(
      'label' => t('After sending an individual email'),
      'variables' => array(
        'views_send_email_message' => array(
          'type' => 'views_send_email_message',
          'label' => t('e-mail message'),
          'description' => t('All information about the message.'),
        ),
      ),
    ),
    'views_send_all_email_added_to_spool' => $defaults + array(
      'label' => t('After adding all e-mails to the spool'),
      'variables' => array(
        'views_send_email_count' => array(
          'type' => 'integer',
          'label' => t('message count'),
          'description' => t('The number of messages added to the spool.'),
        ),
      ),
    ),
    'views_send_email_added_to_spool' => $defaults + array(
      'label' => t('After adding an individual e-mail to the spool'),
      'variables' => array(
        'views_send_email_message' => array(
          'type' => 'views_send_email_message',
          'label' => t('e-mail message'),
          'description' => t('All information about the message.'),
        ),
      ),
    ),
  );
}