function node_expire_update_lastnotify in Node expire 7
Same name and namespace in other branches
- 8 node_expire.rules.inc \node_expire_update_lastnotify()
- 6.2 node_expire.rules.inc \node_expire_update_lastnotify()
- 7.2 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();
}