function page_manager_get_task_subtasks

Fetch all subtasks for a page managertask.

Parameters

$task: A loaded $task plugin object.

3 calls to page_manager_get_task_subtasks()
page_manager_get_pages in page_manager/page_manager.admin.inc
Sort tasks into buckets based upon whether or not they have subtasks.
page_manager_menu in page_manager/page_manager.module
Delegated implementation of hook_menu().
page_manager_menu_alter in page_manager/page_manager.module
Implements hook_menu_alter.

File

page_manager/page_manager.module, line 862

Code

function page_manager_get_task_subtasks($task) {
    if (empty($task['subtasks'])) {
        return array();
    }
    if ($function = ctools_plugin_get_function($task, 'subtasks callback')) {
        $retval = $function($task);
        if (is_array($retval)) {
            return $retval;
        }
    }
    return array();
}