1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * Implementation of hook_rules_event_info().
- */
- 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.')
- ),
- ),
- ),
- );
- }
- /**
- * Implementation of hook_rules_data_info().
- */
- function views_send_rules_data_info() {
- return array(
- 'views_send_email_message' => array(
- 'label' => t('Views Send e-mail message'),
- 'group' => t('Views Send'),
- 'wrap' => TRUE,
- 'property info' => _views_send_email_message_property_info(),
- ),
- );
- }
|