You are here

function page_manager_page_wizard_list in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 includes/page-wizard.inc \page_manager_page_wizard_list()

Provide a simple administrative list of all wizards.

This is called as a page callback, but can also be used by any module that wants to get a list of wizards for its type.

1 string reference to 'page_manager_page_wizard_list'
ctools_page_wizard_menu in includes/page-wizard.menu.inc
@file Contains menu item registration for the page manager page wizards tool.

File

includes/page-wizard.inc, line 176

Code

function page_manager_page_wizard_list($type = NULL) {
  $plugins = page_manager_get_page_wizards();
  uasort($plugins, 'ctools_plugin_sort');
  $output = '<dl class="page-manager-wizards">';
  foreach ($plugins as $id => $plugin) {
    if (!$type || isset($plugin['type']) && $plugin['type'] == $type) {
      $output .= '<dt>' . l($plugin['title'], 'admin/build/pages/wizard/' . $id) . '</dt>';
      $output .= '<dd class="description">' . $plugin['description'] . '</dd>';
    }
  }
  $output .= '</dl>';
  return $output;
}