function flood_register_event

7.x common.inc flood_register_event($name, $window = 3600, $identifier = NULL)
6.x common.inc flood_register_event($name)

Register an event for the current visitor (hostname/IP) to the flood control mechanism.

Parameters

$name: The name of an event.

2 calls to flood_register_event()
contact_mail_page_submit in drupal-6.x/modules/contact/contact.pages.inc
Process the site-wide contact page form submission.
contact_mail_user_submit in drupal-6.x/modules/contact/contact.pages.inc
Process the personal contact page form submission.

File

drupal-6.x/includes/common.inc, line 1060
Common functions that many Drupal modules will need to reference.

Code

function flood_register_event($name) {
  db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, ip_address(), time());
}