materio_user_rules.rules.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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("When the user account is validated."),
  10. 'group' => 'Materio',
  11. 'variables' => array(
  12. 'account' => array(
  13. 'type' => 'user',
  14. 'label' => t("The validated user's account"),
  15. ),
  16. 'simplenews' => array(
  17. 'type' => 'simplenews',
  18. 'label' => t("The Simplenews info from the account validated"),
  19. ),
  20. ),
  21. 'group' => t('User'),
  22. ),
  23. 'materio_simplenews_rules_event_subscribe' => array(
  24. 'label' => t('A user has been subscribed and verified'),
  25. 'group' => t('Simplenews'),
  26. 'variables' => array(
  27. 'mail' => array(
  28. 'type' => 'text',
  29. 'label' => t('E-Mail'),
  30. 'description' => t('The e-mail address that has been subscribed.'),
  31. ),
  32. 'tid' => array(
  33. 'type' => 'integer',
  34. 'label' => t('Simplenews category'),
  35. 'descrption' => t('The newsletter category of the subscription.'),
  36. 'options list' => 'simplenews_category_list',
  37. ),
  38. ),
  39. ),
  40. );
  41. }