You are here

google-appliance-block-form.tpl.php in Google Search Appliance 7

default theme implementation for the search block form variables of interest

  • variables['form'] : the form elements array, pre-render
  • variables['block_search_form']['hidden'] : hidden form elements collapsed + rendered
  • variables['block_serach_form'] : form elements rendered and keyed by original form keys
  • variables['block_search_form_complete'] : the entire form collapsed and rendered

File

theme/google-appliance-block-form.tpl.php
View source
<?php

// $Id$

/**
 * @file
 *    default theme implementation for the search block form
 * variables of interest
 * - variables['form'] : the form elements array, pre-render
 * - variables['block_search_form']['hidden'] : hidden form elements collapsed + rendered 
 * - variables['block_serach_form'] : form elements rendered and keyed by original form keys
 * - variables['block_search_form_complete'] : the entire form collapsed and rendered
 *
 * @see template_preprocess_google_appliance_block_form()
 */

//dsm($variables);
?>
<div class="container-inline">
  <?php

if (empty($variables['form']['#block']->subject)) {
  ?>
    <h2 class="element-invisible"><?php

  print t('Search Google Appliance');
  ?></h2>
  <?php

}
?>
  <?php

print $block_search_form_complete;
?>  
</div>