function node_save_action

Saves a node.

Parameters

Drupal\node\Node $node: The node to be saved.

Related topics

File

drupal/core/modules/node/node.module, line 3558
The core module that allows content to be submitted to the site.

Code

function node_save_action(Node $node) {
  $node
    ->save();
  watchdog('action', 'Saved @type %title', array(
    '@type' => node_get_type_label($node),
    '%title' => $node
      ->label(),
  ));
}