materio_user_rules.rules.inc 828 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Implement hook_rules_event_info().
  4. * @ingroup rules
  5. */
  6. function materio_user_rules_rules_event_info() {
  7. return array(
  8. 'materio_logintoboggan_validated' => array(
  9. 'label' => t("a user is validated and subcribed to newsletter on registration."),
  10. 'group' => 'Materio',
  11. 'variables' => array(
  12. 'account' => array(
  13. 'type' => 'user',
  14. 'label' => t("The validated user's account"),
  15. ),
  16. 'subscriptions_list' => array(
  17. 'type' => 'list',
  18. 'label' => t("The Simplenews info from the account validated as a list of tid for looping"),
  19. ),
  20. 'subscriptions_text' => array(
  21. 'type' => 'text',
  22. 'label' => t("The Simplenews info from the account validated as a single text"),
  23. ),
  24. ),
  25. ),
  26. );
  27. }