function flood_register_event
Same name and namespace in other branches
- 7.x drupal-7.x/includes/common.inc \flood_register_event()
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.
Archivo
- drupal-6.x/
includes/ common.inc, line 1060 - Common functions that many Drupal modules will need to reference.
Código
function flood_register_event($name) {
db_query("INSERT INTO {flood} (event, hostname, timestamp) VALUES ('%s', '%s', %d)", $name, ip_address(), time());
}