node_operations_promote

Versions
5
node_operations_promote($nodes)

Callback function for admin mass promoting nodes.

Code

modules/node/node.module, line 1381

<?php
function node_operations_promote($nodes) {
  $placeholders = implode(',', array_fill(0, count($nodes), '%d'));
  db_query('UPDATE {node} SET status = 1, promote = 1 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.