function workbench_moderation_noderevision_page_manager_tasks in Workbench Moderation 7
Same name and namespace in other branches
- 7.3 plugins/page_manager/tasks/noderevision.inc \workbench_moderation_noderevision_page_manager_tasks()
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
page_manager/ tasks/ noderevision.inc, line 7
Code
function workbench_moderation_noderevision_page_manager_tasks() {
return array(
// This is a 'page' task and will fall under the page admin UI
'task type' => 'page',
'title' => t('Node revision'),
'admin title' => t('The revision page for moderated nodes.'),
'admin description' => t('When enabled, this overrides the default node view at node/%node/revisions/%/view'),
'admin path' => 'node/%node/revisions/%/view',
// Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu alter' => 'workbench_moderation_noderevision_menu_alter',
// This is task uses 'context' handlers and must implement these to give the
// handler data it needs.
'handler type' => 'context',
'get arguments' => 'workbench_moderation_noderevision_get_arguments',
'get context placeholders' => 'workbench_moderation_noderevisoin_get_contexts',
// Allow this to be enabled or disabled:
'disabled' => variable_get('workbench_moderation_noderevision_disabled', TRUE),
'enable callback' => 'workbench_moderation_noderevision_enable',
);
}