materio-base-legacy/sites/all/modules/gui/materiobasemod/materio_user_rules.rules.inc
2015-04-19 13:47:39 +02:00

32 lines
828 B
PHP

<?php
/**
* Implement hook_rules_event_info().
* @ingroup rules
*/
function materio_user_rules_rules_event_info() {
return array(
'materio_logintoboggan_validated' => array(
'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"),
),
'subscriptions_list' => array(
'type' => 'list',
'label' => t("The Simplenews info from the account validated as a list of tid for looping"),
),
'subscriptions_text' => array(
'type' => 'text',
'label' => t("The Simplenews info from the account validated as a single text"),
),
),
),
);
}