node_update_shutdown

Versions
4.7 – 5
node_update_shutdown()

shutdown function to make sure we always mark the last node processed.

Code

modules/node/node.module, line 2544

<?php
function node_update_shutdown() {
  global $last_change, $last_nid;

  if ($last_change && $last_nid) {
    variable_set('node_cron_last', $last_change);
    variable_set('node_cron_last_nid', $last_nid);
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.