function context_contrib_ctools_render_alter in Context 6.2
Implementation of hook_ctools_render_alter().
Used to detect the presence of a page manager node view or node form.
File
- context_contrib/
context_contrib.module, line 94
Code
function context_contrib_ctools_render_alter($info, $page, $args, $contexts, $task, $subtask) {
if ($page && in_array($task['name'], array(
'node_view',
'node_edit',
), TRUE)) {
foreach ($contexts as $ctools_context) {
if ($ctools_context->type === 'node' && !empty($ctools_context->data)) {
context_contrib_node_condition($ctools_context->data, $task['name'] === 'node_view' ? 'view' : 'form');
break;
}
}
}
}