function workbench_moderation_nodedraft_get_arguments in Workbench Moderation 7.3
Same name and namespace in other branches
- 7 plugins/page_manager/tasks/nodedraft.inc \workbench_moderation_nodedraft_get_arguments()
Callback to get arguments provided by this task handler.
Since this is the node view and there is no UI on the arguments, we create dummy arguments that contain the needed data.
1 string reference to 'workbench_moderation_nodedraft_get_arguments'
- workbench_moderation_nodedraft_page_manager_tasks in plugins/
page_manager/ tasks/ nodedraft.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- plugins/
page_manager/ tasks/ nodedraft.inc, line 116
Code
function workbench_moderation_nodedraft_get_arguments($task, $subtask_id) {
return array(
array(
'keyword' => 'node',
'identifier' => t('Node draft being viewed'),
'id' => 1,
'name' => 'entity_id:node',
'settings' => array(),
),
);
}