function page_manager_get_task_subtask

Fetch all subtasks for a page managertask.

Parameters

$task: A loaded $task plugin object.

$subtask_id: The subtask ID to load.

4 calls to page_manager_get_task_subtask()
page_manager_get_default_task_handlers in page_manager/page_manager.module
Get the default task handlers from a task, if they exist.
page_manager_get_page_cache in page_manager/page_manager.module
Get the cached changes to a given task handler.
page_manager_page_execute in page_manager/plugins/tasks/page.inc
Execute a page task.
page_manager_search_page in page_manager/plugins/tasks/search.inc
Entry point for our overridden search page.

File

page_manager/page_manager.module, line 885

Code

function page_manager_get_task_subtask($task, $subtask_id) {
    if (empty($task['subtasks'])) {
        return;
    }
    if ($function = ctools_plugin_get_function($task, 'subtask callback')) {
        return $function($task, $subtask_id);
    }
}