- Patch #6444 by Junyor: allow modules to change the 'changed' timestamp of nodes.
parent
e5e26a07d6
commit
33eb82e16f
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue