You are here

function party_party_view_page_manager_tasks in Party 8.2

Same name and namespace in other branches
  1. 7 plugins/tasks/party_view.inc \party_party_view_page_manager_tasks()

Implements hook_page_manager_task_tasks()

File

plugins/tasks/party_view.inc, line 15
Handle the 'party view' overrride task

Code

function party_party_view_page_manager_tasks() {
  return array(
    // This is a 'page' task and will fall under the pade admin ui
    'task type' => 'page',
    'title' => t('Party Template'),
    'admin title' => t('Party Template'),
    'admin description' => t('When enabled this overides the default behaviour for <em>party/%party/party/view</em>. If you add varients you may use selection criteria based on hats or anything else to provide different views of parties. If no variant is selected the default Party view will be used'),
    'admin path' => 'party/%party/party/view',
    // Menu hooks so that we can alrer the entry point to us
    'hook menu' => 'party_view_page_manager_menu',
    'hook menu alter' => 'party_view_page_manager_menu_alter',
    // This task uses context handlers and must implement these to give th handler data it needs
    'handler type' => 'context',
    'get arguments' => 'party_view_page_manager_get_arguments',
    'get context placeholders' => 'party_view_page_manager_get_contexts',
    // Allow this to be enabled or disabled
    'disabled' => variable_get('party_view_page_manager_disabled', TRUE),
    'enable callback' => 'party_view_page_manager_enable',
  );
}