function honeypot_cron in Honeypot 6
Same name and namespace in other branches
- 8 honeypot.module \honeypot_cron()
- 7 honeypot.module \honeypot_cron()
- 2.0.x honeypot.module \honeypot_cron()
Implementation of hook_cron().
File
- ./
honeypot.module, line 81 - Honeypot module, for deterring spam bots from completing Drupal forms.
Code
function honeypot_cron() {
// Delete {honeypot_user} entries older than the value of honeypot_expire.
db_query('DELETE FROM {honeypot_user} WHERE timestamp < %d', time() - variable_get('honeypot_expire', 300));
}