You are here

function ctools_context_handler_get_handler_contexts in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 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.

1 call to ctools_context_handler_get_handler_contexts()
page_manager_http_response_render in page_manager/plugins/task_handlers/http_response.inc

File

includes/context-task-handler.inc, line 238
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);
}