You are here

function ctools_context_handler_get_task_contexts in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/context-task-handler.inc \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
Support for creating 'context' type task handlers.

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;
}