node_promote_action

Definition

node_promote_action(&$node, $context = array())
files/drupal-6.7/modules/node/node.module, line 2632

Description

Implementation of a Drupal action. Sets the promote property of a node to 1.

Code

<?php
function node_promote_action(&$node, $context = array()) {
  $node->promote = 1;
  watchdog('action', 'Promoted @type %title to front page.', array('@type' => node_get_types('name', $node), '%title' => $node->title));
}
?>