You are here

function radioactivity_node_cron in Radioactivity 6

File

plugins/radioactivity_node.module, line 89
Node radioactivity

Code

function radioactivity_node_cron() {
  $timestamp = time();

  // delete old enough clicks that gave energy to nodes
  db_query("DELETE FROM {radioactivity_node_clicks} WHERE click_timestamp < %d", $timestamp - _radioactivity_node_get_click_duration());
}