You are here

function node_operations_unpublish in Drupal 5

Callback function for admin mass unpublishing nodes.

1 string reference to 'node_operations_unpublish'
node_node_operations in modules/node/node.module
Implementation of hook_node_operations().

File

modules/node/node.module, line 1373
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_operations_unpublish($nodes) {
  $placeholders = implode(',', array_fill(0, count($nodes), '%d'));
  db_query('UPDATE {node} SET status = 0 WHERE nid IN(' . $placeholders . ')', $nodes);
}