function page_manager_search_page_manager_tasks
Specialized implementation of hook_page_manager_task_tasks().
See api-task.html for more information.
File
-
page_manager/
plugins/ tasks/ search.inc, line 17
Code
function page_manager_search_page_manager_tasks() {
if (!module_exists('search')) {
return;
}
return array(
// This is a 'page' task and will fall under the page admin UI.
'task type' => 'page',
'title' => t('Search'),
// There are multiple search pages, let's override each of them
// separately.
'subtasks' => TRUE,
'subtask callback' => 'page_manager_search_subtask',
'subtasks callback' => 'page_manager_search_subtasks',
// Menu hooks so that we can alter the node/%node menu entry to point to us.
'hook menu alter' => 'page_manager_search_menu_alter',
// This is task uses 'context' handlers and must implement these to give the
// handler data it needs.
'handler type' => 'context',
'get arguments' => 'page_manager_search_get_arguments',
'get context placeholders' => 'page_manager_search_get_contexts',
'access callback' => 'page_manager_search_access_check',
);
}