diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-01-13 23:30:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-01-13 23:30:43 +0000 |
commit | 5302d50c96e35a51c72e6ff64657e87bb350578e (patch) | |
tree | 36f14670e726e311222a4660ed45769bb2390788 /modules/node/node.api.php | |
parent | f60739b033efb6fc47e07bd7732fecf8222793c0 (diff) | |
download | brdo-5302d50c96e35a51c72e6ff64657e87bb350578e.tar.gz brdo-5302d50c96e35a51c72e6ff64657e87bb350578e.tar.bz2 |
- Patch #677544 by jhodgdon: content admin screen not clear.
Diffstat (limited to 'modules/node/node.api.php')
-rw-r--r-- | modules/node/node.api.php | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php index 09dfe9d3c..ef7f7bdec 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -222,28 +222,39 @@ function hook_node_grants_alter(&$grants, $account, $op) { */ function hook_node_operations() { $operations = array( - 'approve' => array( - 'label' => t('Approve the selected posts'), - 'callback' => 'node_operations_approve', + 'publish' => array( + 'label' => t('Publish selected content'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED)), ), - 'promote' => array( - 'label' => t('Promote the selected posts'), - 'callback' => 'node_operations_promote', + 'unpublish' => array( + 'label' => t('Unpublish selected content'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('status' => NODE_NOT_PUBLISHED)), ), - 'sticky' => array( - 'label' => t('Make the selected posts sticky'), - 'callback' => 'node_operations_sticky', + 'promote' => array( + 'label' => t('Promote selected content to front page'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'promote' => NODE_PROMOTED)), ), 'demote' => array( - 'label' => t('Demote the selected posts'), - 'callback' => 'node_operations_demote', + 'label' => t('Demote selected content from front page'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('promote' => NODE_NOT_PROMOTED)), ), - 'unpublish' => array( - 'label' => t('Unpublish the selected posts'), - 'callback' => 'node_operations_unpublish', + 'sticky' => array( + 'label' => t('Make selected content sticky'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('status' => NODE_PUBLISHED, 'sticky' => NODE_STICKY)), + ), + 'unsticky' => array( + 'label' => t('Make selected content not sticky'), + 'callback' => 'node_mass_update', + 'callback arguments' => array('updates' => array('sticky' => NODE_NOT_STICKY)), ), 'delete' => array( - 'label' => t('Delete the selected posts'), + 'label' => t('Delete selected content'), + 'callback' => NULL, ), ); return $operations; |