You are here

function userpoints_nc_visits_cron in User points Nodes and Comments 7

Implements hook_cron().

Clear old entries in the {userpoints_nc_visits} table.

File

userpoints_nc_visits/userpoints_nc_visits.module, line 243
Hooks and functions for userpoints_nc_visits module.

Code

function userpoints_nc_visits_cron() {
  db_delete('userpoints_nc_visits')
    ->condition('timestamp', REQUEST_TIME - userpoints_nc_visits_get_setting('timeout', NULL, 86400), '<')
    ->execute();
}