Commit 630ece97 authored by Dries's avatar Dries

- Patch #6444 by Junyor: allow modules to change the 'changed' timestamp of nodes.

parent 0f813b98
......@@ -401,7 +401,9 @@ function node_save($node) {
if (!$node->created) {
$node->created = time();
}
$node->changed = time();
if (!$node->changed) {
$node->changed = time();
}
$node->nid = db_next_id('{node}_nid');
// Prepare the query:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment