flood_clear_event

Versions
7
flood_clear_event($name, $identifier = NULL)

Make the flood control mechanism forget about an event for the current visitor.

Parameters

$name The name of an event.

$identifier Optional identifier (defaults to the current user's IP address).

Code

includes/common.inc, line 1650

<?php
function flood_clear_event($name, $identifier = NULL) {
  if (!isset($identifier)) {
    $identifier = ip_address();
  }
  db_delete('flood')
    ->condition('event', $name)
    ->condition('identifier', $identifier)
    ->execute();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.