You are here

function node_save_action in Drupal 7

Same name and namespace in other branches
  1. 6 modules/node/node.module \node_save_action()

Saves a node.

Parameters

$node: The node to be saved.

Related topics

File

modules/node/node.module, line 3964
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_save_action($node) {
  node_save($node);
  watchdog('action', 'Saved @type %title', array(
    '@type' => node_type_get_name($node),
    '%title' => $node->title,
  ));
}