node_save_action

6 node.module node_save_action($node)
7 node.module node_save_action($node)
8 node.module node_save_action(Node $node)

Implementation of a Drupal action. Saves a node.

2 string references to 'node_save_action'

File

modules/node/node.module, line 2692
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_get_types('name', $node), '%title' => $node->title));
}
Login or register to post comments