Commit 86de9aad authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#200540 by theborg: fix node_make_unsticky_action() code comments and promote...

#200540 by theborg: fix node_make_unsticky_action() code comments and promote flag in node_unpromote_action()
parent ce3542d8
......@@ -2508,7 +2508,7 @@ function node_make_sticky_action(&$node, $context = array()) {
/**
* Implementation of a Drupal action.
* Sets the sticky-at-top-of-list property of a node to 1.
* Sets the sticky-at-top-of-list property of a node to 0.
*/
function node_make_unsticky_action(&$node, $context = array()) {
$node->sticky = 0;
......@@ -2529,7 +2529,7 @@ function node_promote_action(&$node, $context = array()) {
* Sets the promote property of a node to 0.
*/
function node_unpromote_action(&$node, $context = array()) {
$node->promote = 1;
$node->promote = 0;
watchdog('action', 'Removed @type %title from front page.', array('@type' => node_get_types('type', $node), '%title' => $node->title));
}
......
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