Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
5302d50c
Commit
5302d50c
authored
Jan 13, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#677544
by jhodgdon: content admin screen not clear.
parent
f60739b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
22 deletions
+33
-22
modules/node/node.admin.inc
modules/node/node.admin.inc
+7
-7
modules/node/node.api.php
modules/node/node.api.php
+26
-15
No files found.
modules/node/node.admin.inc
View file @
5302d50c
...
...
@@ -28,37 +28,37 @@ function node_configure_rebuild_confirm_submit($form, &$form_state) {
function
node_node_operations
()
{
$operations
=
array
(
'publish'
=>
array
(
'label'
=>
t
(
'Publish'
),
'label'
=>
t
(
'Publish
selected content
'
),
'callback'
=>
'node_mass_update'
,
'callback arguments'
=>
array
(
'updates'
=>
array
(
'status'
=>
NODE_PUBLISHED
)),
),
'unpublish'
=>
array
(
'label'
=>
t
(
'Unpublish'
),
'label'
=>
t
(
'Unpublish
selected content
'
),
'callback'
=>
'node_mass_update'
,
'callback arguments'
=>
array
(
'updates'
=>
array
(
'status'
=>
NODE_NOT_PUBLISHED
)),
),
'promote'
=>
array
(
'label'
=>
t
(
'Promote to front page'
),
'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 from front page'
),
'label'
=>
t
(
'Demote
selected content
from front page'
),
'callback'
=>
'node_mass_update'
,
'callback arguments'
=>
array
(
'updates'
=>
array
(
'promote'
=>
NODE_NOT_PROMOTED
)),
),
'sticky'
=>
array
(
'label'
=>
t
(
'Make sticky'
),
'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
(
'
Remove
stick
iness
'
),
'label'
=>
t
(
'
Make selected content not
stick
y
'
),
'callback'
=>
'node_mass_update'
,
'callback arguments'
=>
array
(
'updates'
=>
array
(
'sticky'
=>
NODE_NOT_STICKY
)),
),
'delete'
=>
array
(
'label'
=>
t
(
'Delete'
),
'label'
=>
t
(
'Delete
selected content
'
),
'callback'
=>
NULL
,
),
);
...
...
modules/node/node.api.php
View file @
5302d50c
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment