fieldset_helper_alter_theme_system_modules

contrib-jrockowitz/fieldset_helper/fieldset_helper.module, line 324

Versions
6
fieldset_helper_alter_theme_system_modules($output)

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.

Code

<?php
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;
}
?>