12345678910111213141516171819202122232425262728293031 |
- <?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"),
- ),
- ),
- ),
- );
- }
|