2 * Implements hook_node_operations().
4 function {{ machine_name }}_node_operations() {
7 'label' => t('Publish selected content'),
8 'callback' => 'node_mass_update',
9 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED)),
12 'label' => t('Unpublish selected content'),
13 'callback' => 'node_mass_update',
14 'callback arguments' => array('updates' => array('status' => NODE_NOT_PUBLISHED)),
17 'label' => t('Promote selected content to front page'),
18 'callback' => 'node_mass_update',
19 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED)),
22 'label' => t('Demote selected content from front page'),
23 'callback' => 'node_mass_update',
24 'callback arguments' => array('updates' => array('promote' => NODE_NOT_PROMOTED)),
27 'label' => t('Make selected content sticky'),
28 'callback' => 'node_mass_update',
29 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY)),
32 'label' => t('Make selected content not sticky'),
33 'callback' => 'node_mass_update',
34 'callback arguments' => array('updates' => array('sticky' => NODE_NOT_STICKY)),
37 'label' => t('Delete selected content'),