function 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.

1 call to page_manager_load_task_handler()
page_manager_addressable_content in page_manager/page_manager.module
Implement pseudo-hook to fetch addressable content.

File

page_manager/page_manager.module, line 515

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);
}