Using standard Drupal script to hide/show blocks

Drupal

May 2014

<script type="text/javascript" src="/misc/collapse.js?n5t2n7"></script>
 
 <fieldset class="collapsible collapsed" id="search-filters" >
 <legend><span class="fieldset-legend"><a class="fieldset-title" href="#"><span class="fieldset-legend-prefix element-invisible">Hide</span> Change Search Filters </a> </span></legend>
 
 <div class="fieldset-wrapper" style="display:none"> 
 <?php $block = module_invoke('views', 'block_view', '-exp-class_actions_advanced_search-page_1');
 // https://api.drupal.org/api/drupal/includes%21module.inc/function/module_invoke/7
 print render($block); ?> 
 </div>
 </fieldset>