updated materio_user_rules : rules event on user validation+has subscribed works

This commit is contained in:
Bachir Soussi Chiadmi
2013-11-08 22:34:54 +01:00
parent d35f79e2cf
commit 64ebb28c01
2 changed files with 27 additions and 23 deletions

View File

@@ -10,34 +10,20 @@
function materio_user_rules_rules_event_info() {
return array(
'materio_logintoboggan_validated' => array(
'label' => t("When the user account is validated."),
'label' => t("a user is validated and subcribed to newsletter on registration."),
'group' => 'Materio',
'variables' => array(
'account' => array(
'type' => 'user',
'label' => t("The validated user's account"),
),
'simplenews' => array(
'type' => 'simplenews',
'label' => t("The Simplenews info from the account validated"),
'subscriptions_list' => array(
'type' => 'list',
'label' => t("The Simplenews info from the account validated as a list of tid for looping"),
),
),
'group' => t('User'),
),
'materio_simplenews_rules_event_subscribe' => array(
'label' => t('A user has been subscribed and verified'),
'group' => t('Simplenews'),
'variables' => array(
'mail' => array(
'subscriptions_text' => 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',
'label' => t("The Simplenews info from the account validated as a single text"),
),
),
),