function ctools_context_handler_get_task_arguments in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/context-task-handler.inc \ctools_context_handler_get_task_arguments()
Get the arguments from a task that are used to load contexts.
3 calls to ctools_context_handler_get_task_arguments()
- ctools_context_handler_get_task_contexts in includes/
context-task-handler.inc - Load the contexts for a task, using arguments.
- ctools_context_handler_get_task_object in includes/
context-task-handler.inc - Create an object suitable for use with the context system that kind of expects things in a certain, kind of clunky format. This one adds in arguments from the task.
- ctools_context_handler_render in includes/
context-task-handler.inc - Render a context type task handler given a list of handlers attached to a type.
File
- includes/
context-task-handler.inc, line 305 - Support for creating 'context' type task handlers.
Code
function ctools_context_handler_get_task_arguments($task, $subtask) {
if ($function = ctools_plugin_get_function($task, 'get arguments')) {
return $function($task, $subtask);
}
return array();
}