function esi_panels__get_base_context_arguments in ESI: Edge Side Includes 7.3
Load the arguments which are used to populate the base context of a ctools task plugin.
@example $args = esi_panels__get_base_context_arguments('node_view', array(1)); Returns array(node_load(1));
Parameters
string $task: The ctools task.
string $subtask: The subtask of the ctools task (if applicable).
Array $args: Arguments to pass to the argument constructor (if applicable).
Return value
array Array of arguments to pass to the ctools context constructor.
1 call to esi_panels__get_base_context_arguments()
- esi_panels__restore_context in modules/
esi_panels/ esi_panels.esi.inc - Restore the original context that was used when a block was displayed.
File
- modules/
esi_panels/ esi_panels.module, line 358 - ESI handler for panel panes.
Code
function esi_panels__get_base_context_arguments($task, $subtask = '', $args = array()) {
// A core bug is preventing module_invoke_all() from lazy-loading according
// to the hook_hook_info() definitions.
foreach (module_list(FALSE, FALSE, TRUE) as $module) {
module_load_include('inc', $module, $module . '.esi_panels');
}
return module_invoke_all('esi_panels_context_arguments', $task, $subtask, $args);
}