function node_save_action

7.x node.module node_save_action($node)

Saves a node.

Parameters

$node: The node to be saved.

Related topics

5 string references to 'node_save_action'
drupal-6.bare.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.bare.database.php
Bare installation of Drupal 6.17, for test purposes.
drupal-6.filled.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.filled.database.php
Filled installation of Drupal 6.17, for test purposes.
drupal-6.trigger.database.php in drupal/modules/simpletest/tests/upgrade/drupal-6.trigger.database.php
Test content for the trigger upgrade path.
drupal-7.trigger.database.php in drupal/modules/simpletest/tests/upgrade/drupal-7.trigger.database.php
Test content for the trigger upgrade path.
node_action_info in drupal/modules/node/node.module
Implements hook_action_info().

File

drupal/modules/node/node.module, line 3936
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));
}