function page_manager_get_task_subtasks in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/page_manager.module \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 - Implementation of hook_menu_alter.
File
- page_manager/
page_manager.module, line 720 - The page manager module provides a UI and API to manage pages.
Code
function page_manager_get_task_subtasks($task) {
if (empty($task['subtasks'])) {
return array();
}
if ($function = ctools_plugin_get_function($task, 'subtasks callback')) {
return $function($task);
}
return array();
}