node_operations_demote

5 node.module node_operations_demote($nodes)

Callback function for admin mass demoting nodes.

2 string references to 'node_operations_demote'

File

modules/node/node.module, line 1389
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_demote($nodes) {
  $placeholders = implode(',', array_fill(0, count($nodes), '%d'));
  db_query('UPDATE {node} SET promote = 0 WHERE nid IN(' . $placeholders . ')', $nodes);
}
Login or register to post comments