function ctools_context_handler_render
Render a context type task handler given a list of handlers attached to a type.
Parameters
$task: The $task object in use.
$subtask: The id of the subtask in use.
$contexts: The context objects in use.
$args: The raw arguments behind the contexts.
$page: If TRUE then this renderer owns the page and can use theme('page') for no blocks; if false, output is returned regardless of any no blocks settings.
Return value
Either the output or NULL if there was output, FALSE if no handler accepted the task. If $page is FALSE then the $info block is returned instead.
13 calls to ctools_context_handler_render()
- page_manager_blog in page_manager/
plugins/ tasks/ blog.inc - Entry point for our overridden node edit.
- page_manager_blog_user in page_manager/
plugins/ tasks/ blog_user.inc - Entry point for our overridden user view.
- page_manager_comment_reply_page in page_manager/
plugins/ tasks/ comment_reply.inc - Entry point for our overridden comment.
- page_manager_contact_site in page_manager/
plugins/ tasks/ contact_site.inc - Entry point for our overridden site contact.
- page_manager_contact_user in page_manager/
plugins/ tasks/ contact_user.inc - Entry point for our overridden user view.
File
-
includes/
context-task-handler.inc, line 39
Code
function ctools_context_handler_render($task, $subtask, $contexts, $args) {
// Load the landlers, choosing only enabled handlers.
$handlers = page_manager_load_sorted_handlers($task, $subtask ? $subtask['name'] : '', TRUE);
$id = ctools_context_handler_get_render_handler($task, $subtask, $handlers, $contexts, $args);
if ($id) {
return ctools_context_handler_render_handler($task, $subtask, $handlers[$id], $contexts, $args);
}
return FALSE;
}