Script to close/open all collapsed tabs in drupal
DrupalFebruary 2015
<script> function collapseGroups(collapse){ var selector = "fieldset.field-group-fieldset"; if(collapse){ jQuery(selector).addClass("collapsed"); jQuery( "span.close-all" ).hide(); jQuery( "span.open-all" ).show(); }else{ jQuery(selector).removeClass("collapsed"); jQuery( "span.close-all" ).show(); jQuery( "span.open-all" ).hide(); } } </script>