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

4.5.x
Dries Buytaert 2004-04-24 07:41:49 +00:00
parent e5e26a07d6
commit 33eb82e16f
2 changed files with 6 additions and 2 deletions

View File

@ -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:

View File

@ -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: