You are here

function ctools_context_handler_get_task_arguments 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_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_handler in includes/context-task-handler.inc
Render a task handler.

File

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