node_operations_demote

Versions
5
node_operations_demote($nodes)

Callback function for admin mass demoting nodes.

Code

modules/node/node.module, line 1389

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.