function honeypot_cron() {
// Delete {honeypot_user} entries older than the value of honeypot_expire.
db_delete('honeypot_user')
->condition('timestamp', time() - $config->get('expire'), '<')
->execute();
}
However, $config is not defined. Perhaps that should be config_get('honeypot.settings', 'expire') instead?
Nice simple cron function:
However, $config is not defined. Perhaps that should be
config_get('honeypot.settings', 'expire')
instead?