search-theme-form.tpl.php
Version
1.1 (checked in on 2007/10/31 at 18:06:38 by dries)
Description
search-theme-form.tpl.php Default theme implementation for displaying a search form directly into the theme layout. Not to be confused with the search block or the search page.
Available variables:
- $search_form: The complete search form ready for print.
- $search: Array of keyed search elements. Can be used to print each form element separately.
- $search['search_theme_form']: Text input area wrapped in a div.
- $search['submit']: Form submit button.
- $search['hidden']: Hidden form elements. Used to validate forms when submitted.
<?php if (isset($search['extra_field'])): ?> <div class="extra-field"> <?php print $search['extra_field']; ?> </div> <?php endif; ?>
To check for all available data within $search, use the code below.
<?php print '<pre>'. check_plain(print_r($search, 1)) .'</pre>'; ?>
