Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
4a96b2c5
Commit
4a96b2c5
authored
Feb 18, 2008
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#220893
by AjK: fixed some watchdog calls.
parent
b4c0e8ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/node/node.module
modules/node/node.module
+3
-3
No files found.
modules/node/node.module
View file @
4a96b2c5
...
...
@@ -2618,7 +2618,7 @@ function node_make_unsticky_action(&$node, $context = array()) {
*/
function
node_promote_action
(
&
$node
,
$context
=
array
())
{
$node
->
promote
=
1
;
watchdog
(
'action'
,
'Promoted @type %title to front page.'
,
array
(
'@type'
=>
node_get_types
(
'
typ
e'
,
$node
),
'%title'
=>
$node
->
title
));
watchdog
(
'action'
,
'Promoted @type %title to front page.'
,
array
(
'@type'
=>
node_get_types
(
'
nam
e'
,
$node
),
'%title'
=>
$node
->
title
));
}
/**
...
...
@@ -2627,7 +2627,7 @@ function node_promote_action(&$node, $context = array()) {
*/
function
node_unpromote_action
(
&
$node
,
$context
=
array
())
{
$node
->
promote
=
0
;
watchdog
(
'action'
,
'Removed @type %title from front page.'
,
array
(
'@type'
=>
node_get_types
(
'
typ
e'
,
$node
),
'%title'
=>
$node
->
title
));
watchdog
(
'action'
,
'Removed @type %title from front page.'
,
array
(
'@type'
=>
node_get_types
(
'
nam
e'
,
$node
),
'%title'
=>
$node
->
title
));
}
/**
...
...
@@ -2636,7 +2636,7 @@ function node_unpromote_action(&$node, $context = array()) {
*/
function
node_save_action
(
$node
)
{
node_save
(
$node
);
watchdog
(
'action'
,
'Saved @type %title'
,
array
(
'@type'
=>
node_get_types
(
'
typ
e'
,
$node
),
'%title'
=>
$node
->
title
));
watchdog
(
'action'
,
'Saved @type %title'
,
array
(
'@type'
=>
node_get_types
(
'
nam
e'
,
$node
),
'%title'
=>
$node
->
title
));
}
/**
...
...
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