node_make_sticky_action

6 node.module node_make_sticky_action(&$node, $context = array())
7 node.module node_make_sticky_action($node, $context = array())
8 node.module node_make_sticky_action(Node $node, $context = array())

Sets the sticky-at-top-of-list property of a node to 1.

Related topics

3 string references to 'node_make_sticky_action'

File

modules/node/node.module, line 3715
The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.

Code

function node_make_sticky_action($node, $context = array()) {
  $node->sticky = NODE_STICKY;
  watchdog('action', 'Set @type %title to sticky.', array('@type' => node_type_get_name($node), '%title' => $node->title));
}
Login or register to post comments