node_operations

  1. drupal
    1. 4.7
Versions
4.7 node_operations()

List node administration operations that can be performed.

▾ 2 functions call node_operations()

node_admin_nodes in modules/node.module
Menu callback: content administration.
node_admin_nodes_submit in modules/node.module
Generate the content administration overview.

Code

modules/node.module, line 936

<?php
function node_operations() {
  $operations = array(
    'approve' => array(t('Approve the selected posts'), 'UPDATE {node} SET status = 1, moderate = 0 WHERE nid = %d'), 
    'promote' => array(t('Promote the selected posts'), 'UPDATE {node} SET status = 1, promote = 1, moderate = 0 WHERE nid = %d'), 
    'sticky' => array(t('Make the selected posts sticky'), 'UPDATE {node} SET status = 1, sticky = 1 WHERE nid = %d'), 
    'demote' => array(t('Demote the selected posts'), 'UPDATE {node} SET promote = 0 WHERE nid = %d'), 
    'unpublish' => array(t('Unpublish the selected posts'), 'UPDATE {node} SET status = 0 WHERE nid = %d'), 
    'delete' => array(t('Delete the selected posts'), ''),
  );
  return $operations;
}
?>