Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
33eb82e1
Commit
33eb82e1
authored
Apr 24, 2004
by
Dries
Browse files
- Patch
#6444
by Junyor: allow modules to change the 'changed' timestamp of nodes.
parent
e5e26a07
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/node.module
View file @
33eb82e1
...
...
@@ -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:
...
...
modules/node/node.module
View file @
33eb82e1
...
...
@@ -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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment