logintoboggan_rules.module

Tracking 7.x-1.x branch
  1. drupal
    1. 6 contributions/logintoboggan/contrib/logintoboggan_rules/logintoboggan_rules.module
    2. 7 contributions/logintoboggan/contrib/logintoboggan_rules/logintoboggan_rules.module

<<<<<<< HEAD

=======

>>>>>>> remotes/origin/7.x-1.x Logintoboggan Rules module

This module provides integration of LoginToboggan module with Rules module

Functions & methods

NameDescription
logintoboggan_rules_userImplement hook_user() <<<<<<< HEAD
logintoboggan_rules_user_update

File

View source
  1. <?php
  2. /**
  3. <<<<<<< HEAD
  4. * @file
  5. =======
  6. * @file
  7. >>>>>>> remotes/origin/7.x-1.x
  8. * Logintoboggan Rules module
  9. *
  10. * This module provides integration of LoginToboggan module with Rules module
  11. */
  12. /**
  13. * Implement hook_user()
  14. <<<<<<< HEAD
  15. *
  16. */
  17. function logintoboggan_rules_user($op, &$edit, &$user_edit, $category = NULL) {
  18. if ($op == 'update') {
  19. if (!empty($user_edit->logintoboggan_email_validated)) {
  20. rules_invoke_event('logintoboggan_validated', $user_edit);
  21. }
  22. }
  23. }
  24. =======
  25. *
  26. */
  27. function logintoboggan_rules_user_update(&$edit, $account) {
  28. if (!empty($account->logintoboggan_email_validated)) {
  29. rules_invoke_event('logintoboggan_validated', $account);
  30. }
  31. }
  32. >>>>>>> remotes/origin/7.x-1.x