node_node_operations

5 node.module node_node_operations()
6 node.admin.inc node_node_operations()
7 node.admin.inc node_node_operations()
8 node.admin.inc node_node_operations()

Implementation of hook_node_operations().

File

modules/node/node.module, line 1329
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_node_operations() {
  $operations = array(
    'publish' => array(
      'label' => t('Publish'), 
      'callback' => 'node_operations_publish',
    ), 
    'unpublish' => array(
      'label' => t('Unpublish'), 
      'callback' => 'node_operations_unpublish',
    ), 
    'promote' => array(
      'label' => t('Promote to front page'), 
      'callback' => 'node_operations_promote',
    ), 
    'demote' => array(
      'label' => t('Demote from front page'), 
      'callback' => 'node_operations_demote',
    ), 
    'sticky' => array(
      'label' => t('Make sticky'), 
      'callback' => 'node_operations_sticky',
    ), 
    'unsticky' => array(
      'label' => t('Remove stickiness'), 
      'callback' => 'node_operations_unsticky',
    ), 
    'delete' => array(
      'label' => t('Delete'),
    ),
  );
  return $operations;
}
Login or register to post comments