function hook_esi_panels_context_arguments in ESI: Edge Side Includes 7.3
Translate task plugin arguments into arguments to pass to a ctools context handler. For example, turn '1' into the fully-loaded node object for node 1.
Every 'task' plugin should implement this hook. An implementation for the default page manager tasks is already provided.
1 function implements hook_esi_panels_context_arguments()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- page_manager_esi_panels_context_arguments in modules/
esi_panels/ esi_panels.esi_panels.inc - Implements hook_esi_panels_context_arguments().
1 invocation of hook_esi_panels_context_arguments()
- esi_panels__get_base_context_arguments in modules/
esi_panels/ esi_panels.module - Load the arguments which are used to populate the base context of a ctools task plugin.
File
- modules/
esi_panels/ esi_panels.api.inc, line 28 - API documentation for hooks defined by ESI Panels.
Code
function hook_esi_panels_context_arguments($task, $subtask = '', $args = array()) {
if ($task == 'node_view' && $subtask == '') {
$nid = array_shift($args);
return node_load($nid);
}
}