You are here

function workbench_moderation_noderevision_get_arguments in Workbench Moderation 7.3

Same name and namespace in other branches
  1. 7 plugins/page_manager/tasks/noderevision.inc \workbench_moderation_noderevision_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_noderevision_get_arguments'
workbench_moderation_noderevision_page_manager_tasks in plugins/page_manager/tasks/noderevision.inc
Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.

File

plugins/page_manager/tasks/noderevision.inc, line 113

Code

function workbench_moderation_noderevision_get_arguments($task, $subtask_id) {
  return array(
    array(
      'keyword' => 'node',
      'identifier' => t('Node revision being viewed'),
      'id' => 1,
      'name' => 'entity_id:node',
      'settings' => array(),
    ),
  );
}