1 common.inc 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

core/includes/common.inc, line 1520
Common functions that many Backdrop 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();
}