summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-12-13 13:06:45 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-12-13 13:06:45 +0000
commit86de9aade3545c482a56b4241a6c48ea40b3563d (patch)
treeea30258d4486efa06f4969f621545f7a3651a85a
parentce3542d8ab0b9baad24f72dd39da0a62ab713b8b (diff)
downloadbrdo-86de9aade3545c482a56b4241a6c48ea40b3563d.tar.gz
brdo-86de9aade3545c482a56b4241a6c48ea40b3563d.tar.bz2
#200540 by theborg: fix node_make_unsticky_action() code comments and promote flag in node_unpromote_action()
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index 5f945bdb3..d7452faf5 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -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));
}