function ctools_context_handler_get_task_contexts

Load the contexts for a task, using arguments.

This creates the base array of contexts, loaded from arguments, suitable for use in rendering.

10 calls to ctools_context_handler_get_task_contexts()
page_manager_addressable_content in page_manager/page_manager.module
Implement pseudo-hook to fetch addressable content.
page_manager_blog_user in page_manager/plugins/tasks/blog_user.inc
Entry point for our overridden user view.
page_manager_comment_reply_page in page_manager/plugins/tasks/comment_reply.inc
Entry point for our overridden comment.
page_manager_contact_user in page_manager/plugins/tasks/contact_user.inc
Entry point for our overridden user view.
page_manager_node_edit in page_manager/plugins/tasks/node_edit.inc
Entry point for our overridden node edit.

... See full list

File

includes/context-task-handler.inc, line 342

Code

function ctools_context_handler_get_task_contexts($task, $subtask, $args) {
    $contexts = ctools_context_handler_get_base_contexts($task, $subtask);
    $arguments = ctools_context_handler_get_task_arguments($task, $subtask);
    ctools_context_get_context_from_arguments($arguments, $contexts, $args);
    return $contexts;
}