function workbench_moderation_nodedraft_page_manager_tasks in Workbench Moderation 7.3
Same name and namespace in other branches
- 7 plugins/page_manager/tasks/nodedraft.inc \workbench_moderation_nodedraft_page_manager_tasks()
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
page_manager/ tasks/ nodedraft.inc, line 7
Code
function workbench_moderation_nodedraft_page_manager_tasks() {
return array(
// This is a 'page' task and will fall under the page admin UI
'task type' => 'page',
'title' => t('Node draft'),
'admin title' => t('The draft page for moderated nodes.'),
'admin description' => t('When enabled, this overrides the default node view at node/%node/draft'),
'admin path' => 'node/%node/draft',
// Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu alter' => 'workbench_moderation_nodedraft_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_nodedraft_get_arguments',
'get context placeholders' => 'workbench_moderation_nodedraft_get_contexts',
// Allow this to be enabled or disabled:
'disabled' => variable_get('workbench_moderation_nodedraft_disabled', TRUE),
'enable callback' => 'workbench_moderation_nodedraft_enable',
);
}