You are here

function node_operations in Drupal 4

List node administration operations that can be performed.

2 calls to 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.

File

modules/node.module, line 935
The core that allows content to be submitted to the site.

Code

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;
}