function page_manager_load_sorted_handlers in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/page_manager.module \page_manager_load_sorted_handlers()
Load all task handlers for a given task and subtask and sort them.
2 calls to page_manager_load_sorted_handlers()
- ctools_context_handler_render in includes/
context-task-handler.inc - Render a context type task handler given a list of handlers attached to a type.
- page_manager_get_page_cache in page_manager/
page_manager.module - Get the cached changes to a given task handler.
File
- page_manager/
page_manager.module, line 545 - The page manager module provides a UI and API to manage pages.
Code
function page_manager_load_sorted_handlers($task, $subtask_id = NULL, $enabled = FALSE) {
$handlers = page_manager_load_task_handlers($task, $subtask_id);
if ($enabled) {
foreach ($handlers as $id => $handler) {
if (!empty($handler->disabled)) {
unset($handlers[$id]);
}
}
}
uasort($handlers, 'page_manager_sort_task_handlers');
return $handlers;
}