admin/settings/admin_menu | Advanced Settings

The "Collapse fieldsets on modules page" checkbox seems to have no effect. Even when checked, the fieldsets on the modules page are expanded by default.

Comments

jfinkel’s picture

Status: Active » Closed (fixed)

My bad. I was confusing the admin and the admin_menu module.

I was able to achieve what I want by adding this to the header of the admin\theme\page.tpl.php file:

  <script type="text/javascript" src="http://jqueryui.com/latest/jquery-1.3.2.js"></script>
  <script src="http://ui.jquery.com/latest/ui/effects.core.js"></script>
  <script type="text/javascript">
        $(document).ready(function(){
             $('.fieldset-content').hide();
             $('.collapsible').addClass('collapsed');
        });
  </script>
marcushenningsen’s picture

I stumbled upon this and tried it out, but your code is not really useful since it collapses all fieldsets, not just on the modules page, which is a problem e.g. when editing a field on the manage fields tab on a content type page, where I cannot open the fieldsets again.

marcushenningsen’s picture

Just found the util module (http://drupal.org/project/util) which provides this feature. It seems to work well.