1 node.actions.inc node_make_unsticky_action(Node $node, &$context)

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

Parameters

Node $node: A node entity.

$context: Contextual information about the triggered action.

Related topics

File

core/modules/node/node.actions.inc, line 62
Action callbacks for Node module.

Code

function node_make_unsticky_action(Node $node, &$context) {
  $node->sticky = NODE_NOT_STICKY;
  $node->save();
}