function flood_clear_event

flood_clear_event($name, $identifier = NULL)

Makes the flood control mechanism forget an event for the current visitor.

Parameters

$name: The name of an event.

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

File

includes/common.inc, line 1310
Common functions that many Drupal modules will need to reference.

Code

function flood_clear_event($name, $identifier = NULL) {
  if (!isset($identifier)) {
    $identifier = ip_address();
  }
  db_delete('flood')
    ->condition('event', $name)
    ->condition('identifier', $identifier)
    ->execute();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/flood_clear_event/7.x