node_node_operations

Definition

node_node_operations()
node/node.module, line 1329

Description

Implementation of hook_node_operations().

Code

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