function user_flood_test_user_flood_control

Implements hook_user_flood_control().

File

modules/user/tests/user_flood_test.module, line 11

Code

function user_flood_test_user_flood_control($ip, $username = FALSE) {
    if (!empty($username)) {
        watchdog('user_flood_test', 'hook_user_flood_control was passed username %username and IP %ip.', array(
            '%username' => $username,
            '%ip' => $ip,
        ));
    }
    else {
        watchdog('user_flood_test', 'hook_user_flood_control was passed IP %ip.', array(
            '%ip' => $ip,
        ));
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.