You are here

function node_expire_update_lastnotify in Node expire 8

Same name and namespace in other branches
  1. 6.2 node_expire.rules.inc \node_expire_update_lastnotify()
  2. 7.2 node_expire.rules.inc \node_expire_update_lastnotify()
  3. 7 node_expire.rules.inc \node_expire_update_lastnotify()

Updates lastnotify on nodes.

Parameters

object $node: The Node object with all node IDs that should update lastnotify.

File

./node_expire.rules.inc, line 150
Rules module integration.

Code

function node_expire_update_lastnotify($node) {
  $wrapper = entity_metadata_wrapper('node', $node);
  $value = $wrapper
    ->value();
  $value->lastnotify = REQUEST_TIME;
  $wrapper
    ->set($value);
  $wrapper
    ->save();
}