You are here

function total_control_dashboard_page_manager_tasks in Total Control Admin Dashboard 6.2

Same name and namespace in other branches
  1. 6 plugins/tasks/dashboard.inc \total_control_dashboard_page_manager_tasks()
  2. 7.2 plugins/tasks/dashboard.inc \total_control_dashboard_page_manager_tasks()

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

File

plugins/tasks/dashboard.inc, line 13
Default dashboard setup.

Code

function total_control_dashboard_page_manager_tasks() {
  return array(
    // This is a 'page' task and will fall under the page admin UI
    'task type' => 'page',
    'title' => t('Total Control Admin Dashboard'),
    'description' => t('The total control task creates the administrative dashboard.'),
    'admin title' => 'Total Control Admin Dashboard',
    // translated by menu system
    'admin description' => 'The total control task creates the administrative dashboard.',
    'admin path' => 'admin/dashboard',
    // Callback to add items to the page_manager task administration form:
    'task admin' => 'total_control_dashboard_task_admin',
    'hook menu' => 'total_control_dashboard_menu',
    // This is task uses 'context' handlers and must implement these to give the
    // handler data it needs.
    'handler type' => 'context',
    'get arguments' => 'total_control_dashboard_get_arguments',
    'get context placeholders' => 'total_control_dashboard_get_contexts',
  );
}