-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviews_send.rules.inc
56 lines (54 loc) · 1.6 KB
/
views_send.rules.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?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('email message'),
'description' => t('All information about the message.')
),
),
),
'views_send_all_email_added_to_spool' => $defaults + array(
'label' => t('After adding all emails 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 email to the spool'),
'variables' => array(
'views_send_email_message' => array(
'type' => 'views_send_email_message',
'label' => t('email 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 email message'),
'group' => t('Views Send'),
'wrap' => TRUE,
'property info' => _views_send_email_message_property_info(),
),
);
}