function page_manager_term_view_get_arguments in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/plugins/tasks/term_view.inc \page_manager_term_view_get_arguments()
Callback to get arguments provided by this task handler.
Since this is the term view and there is no UI on the arguments, we create dummy arguments that contain the needed data.
1 call to page_manager_term_view_get_arguments()
- page_manager_term_view_get_contexts in page_manager/
plugins/ tasks/ term_view.inc - Callback to get context placeholders provided by this handler.
1 string reference to 'page_manager_term_view_get_arguments'
- page_manager_term_view_page_manager_tasks in page_manager/
plugins/ tasks/ term_view.inc - Specialized implementation of hook_page_manager_task_tasks(). See api-task.html for more information.
File
- page_manager/
plugins/ tasks/ term_view.inc, line 140 - Handle the 'term view' override task.
Code
function page_manager_term_view_get_arguments($task, $subtask_id) {
return array(
array(
'keyword' => 'term',
'identifier' => variable_get('page_manager_term_view_type', 'multiple') == 'multiple' ? t('Term(s) being viewed') : t('Term being viewed'),
'id' => 1,
'name' => variable_get('page_manager_term_view_type', 'multiple') == 'multiple' ? 'terms' : 'term',
'settings' => array(
'input_form' => 'tid',
'breadcrumb' => variable_get('page_manager_taxonomy_breadcrumb', TRUE),
),
'default' => '404',
),
array(
'keyword' => 'depth',
'identifier' => t('Depth'),
'id' => 1,
'name' => 'string',
'settings' => array(),
),
);
}