function ctools_context_handler_get_task_contexts in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 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.
7 calls to ctools_context_handler_get_task_contexts()
- page_manager_blog_user in page_manager/
plugins/ tasks/ blog_user.inc - Entry point for our overridden user view.
- 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.
- page_manager_node_view in page_manager/
plugins/ tasks/ node_view.inc - Entry point for our overridden node view.
- page_manager_search_page in page_manager/
plugins/ tasks/ search.inc - Entry point for our overridden node view.
File
- includes/
context-task-handler.inc, line 223 - 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;
}