function page_manager_page_wizard_list in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 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 180
Code
function page_manager_page_wizard_list($type = NULL) {
$plugins = page_manager_get_page_wizards();
if (empty($plugins)) {
return '<p>' . t('There are no wizards available at this time.') . '</p>';
}
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/structure/pages/wizard/' . $id) . '</dt>';
$output .= '<dd class="description">' . $plugin['description'] . '</dd>';
}
}
$output .= '</dl>';
return $output;
}