You are here

function page_manager_search_subtasks in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/plugins/tasks/search.inc \page_manager_search_subtasks()

Task callback to get all subtasks.

Return a list of all subtasks.

1 string reference to 'page_manager_search_subtasks'
page_manager_search_page_manager_tasks in page_manager/plugins/tasks/search.inc
Specialized implementation of hook_page_manager_task_tasks().

File

page_manager/plugins/tasks/search.inc, line 186
Handle the 'node view' override task.

Code

function page_manager_search_subtasks($task) {
  $return = array();
  foreach (search_get_info() as $module => $info) {
    if ($info['path']) {

      // We don't pass the $info because the subtask build could be called
      // singly without the $info when just the subtask needs to be built.
      $return[$module] = page_manager_search_build_subtask($task, $module);
    }
  }
  return $return;
}