function node_cron

Same name in other branches
  1. 9 core/modules/node/node.module \node_cron()
  2. 8.9.x core/modules/node/node.module \node_cron()
  3. 10 core/modules/node/node.module \node_cron()

Implements hook_cron().

File

modules/node/node.module, line 158

Code

function node_cron() {
    db_delete('history')->condition('timestamp', NODE_NEW_LIMIT, '<')
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.