function 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 199

Code

function page_manager_term_view_get_arguments($task, $subtask_id) {
    return array(
        array(
            'keyword' => 'term',
            'identifier' => page_manager_term_view_get_type() == 'multiple' ? t('Term(s) being viewed') : t('Term being viewed'),
            'id' => 1,
            'name' => page_manager_term_view_get_type() == '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(),
        ),
    );
}