user_flood_test.module 493 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Dummy module implementing hook_user_flood_control.
  5. */
  6. /**
  7. * Implements hook_user_flood_control().
  8. */
  9. function user_flood_test_user_flood_control($ip, $username = FALSE) {
  10. if (!empty($username)) {
  11. watchdog('user_flood_test', 'hook_user_flood_control was passed username %username and IP %ip.', array('%username' => $username, '%ip' => $ip));
  12. }
  13. else {
  14. watchdog('user_flood_test', 'hook_user_flood_control was passed IP %ip.', array('%ip' => $ip));
  15. }
  16. }