function page_manager_load_task_handler in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/page_manager.module \page_manager_load_task_handler()
Load a single task handler by name.
Handlers can come from multiple sources; either the database or by normal export method, which is handled by the ctools library, but handlers can also be bundled with task/subtask. We have to check there and perform overrides as appropriate.
Handlers bundled with the task are of a higher priority than default handlers provided by normal code, and are of a lower priority than the database, so we have to check the source of handlers when we have multiple to choose from.
File
- page_manager/
page_manager.module, line 423 - The page manager module provides a UI and API to manage pages.
Code
function page_manager_load_task_handler($task, $subtask_id, $name) {
ctools_include('export');
$result = ctools_export_load_object('page_manager_handlers', 'names', array(
$name,
));
$handlers = page_manager_get_default_task_handlers($task, $subtask_id);
return page_manager_compare_task_handlers($result, $handlers, $name);
}