Skip navigation
Help

flood_clear_event

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

1 call to flood_clear_event()

File

drupal/includes/common.inc, line 1164
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();
}