function fieldset_helper_alter_theme_system_modules in Fieldset helper 6
Theme related function used by the included phptemplate_theme_system() to prepend 'Expand all | Collapse all' to the system modules page.
Parameters
$output: The output from the theme_system_modules() function.
Return value
The output prepended with 'Expand all | Collapse all' from the theme_fieldset_helper_toggle_all() function.
1 call to fieldset_helper_alter_theme_system_modules()
- phptemplate_system_modules in ./
fieldset_helper.theme.inc - Overide theme_system_modules using phptemplate.
File
- ./
fieldset_helper.module, line 319 - Saves the collapsed state of a Drupal collapsible fieldset.
Code
function fieldset_helper_alter_theme_system_modules($output) {
// Only toggle first level of system modules.
// Modules like http://drupal.org/project/moduleinfo add a second level of fieldsets
// to the system modules page.
return theme('fieldset_helper_toggle_all', '#system-modules > div > fieldset.collapsible', 'system-modules-toggle-all') . $output;
}