function ctools_context_handler_get_handler_contexts in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 includes/context-task-handler.inc \ctools_context_handler_get_handler_contexts()
Load the contexts for a task handler.
This expands a base set of contexts passed in from a task with the contexts defined on the task handler. The contexts from the task must already have been loaded.
2 calls to ctools_context_handler_get_handler_contexts()
- ctools_context_handler_default_test in includes/
context-task-handler.inc - Default test function to see if a task handler should be rendered.
- page_manager_http_response_render in page_manager/
plugins/ task_handlers/ http_response.inc
File
- includes/
context-task-handler.inc, line 357 - Support for creating 'context' type task handlers.
Code
function ctools_context_handler_get_handler_contexts($contexts, $handler) {
$object = ctools_context_handler_get_handler_object($handler);
return ctools_context_load_contexts($object, FALSE, $contexts);
}