function simplenews_rules_rules_event_info in Simplenews 7
Same name and namespace in other branches
- 8.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_rules_event_info()
- 8 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_rules_event_info()
- 7.2 simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_rules_event_info()
- 3.x simplenews_rules/simplenews_rules.rules.inc \simplenews_rules_rules_event_info()
Implements hook_event_info().
File
- simplenews_rules/
simplenews_rules.rules.inc, line 149 - Rules hooks for the Simplenews newsletter module.
Code
function simplenews_rules_rules_event_info() {
return array(
'simplenews_rules_event_subscribe' => array(
'label' => t('A user has been subscribed'),
'group' => t('Simplenews'),
'variables' => array(
'mail' => array(
'type' => 'text',
'label' => t('E-Mail'),
'description' => t('The e-mail address that has been subscribed.'),
),
'tid' => array(
'type' => 'integer',
'label' => t('Simplenews category'),
'descrption' => t('The newsletter category of the subscription.'),
'options list' => 'simplenews_category_list',
),
),
),
'simplenews_rules_event_unsubscribe' => array(
'label' => t('A user has been unsubscribed'),
'group' => t('Simplenews'),
'variables' => array(
'mail' => array(
'type' => 'text',
'label' => t('E-mail'),
'description' => t('The e-mail address that has been subscribed.'),
),
'tid' => array(
'type' => 'integer',
'label' => t('Simplenews category'),
'descrption' => t('The newsletter category of the subscription.'),
'options list' => 'simplenews_category_list',
),
),
),
);
}