You are here

function page_manager_get_task_subtask in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 page_manager/page_manager.module \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 node view.

File

page_manager/page_manager.module, line 740
The page manager module provides a UI and API to manage pages.

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