You are here

function workbench_myworkbench_page_manager_tasks in Workbench 7

Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.

File

plugins/page_manager/tasks/myworkbench.inc, line 7

Code

function workbench_myworkbench_page_manager_tasks() {
  return array(
    // This is a 'page' task and will fall under the page admin UI
    'task type' => 'page',
    'title' => t('My Workbench'),
    'admin title' => t('The Workbench landing page.'),
    'admin description' => t('When enabled, this overrides the default Workbench page for <em>admin/workbench</em>. If no variant is selected, the default "My Workbench" will be shown. See http://drupal.org/node/1226174 for more information.'),
    'admin path' => 'admin/workbench',
    // Menu hooks so that we can alter the node/%node menu entry to point to us.
    'hook menu alter' => 'workbench_myworkbench_menu_alter',
    // This is task uses 'context' handlers and must implement these to give the
    // handler data it needs.
    'handler type' => 'context',
    // Allow this to be enabled or disabled:
    'disabled' => variable_get('workbench_myworkbench_disabled', TRUE),
    'enable callback' => 'workbench_myworkbench_enable',
  );
}