5 * Displays the search form block.
8 * - $search_form: The complete search form ready for print.
9 * - $search: Associative array of search elements. Can be used to print each
10 * form element separately.
12 * Default elements within $search:
13 * - $search['search_block_form']: Text input area wrapped in a div.
14 * - $search['actions']: Rendered form buttons.
15 * - $search['hidden']: Hidden form elements. Used to validate forms when
18 * Modules can add to the search form, so it is recommended to check for their
19 * existence before printing. The default keys will always exist. To check for
20 * a module-provided field, use code like this:
22 * <?php if (isset($search['extra_field'])): ?>
23 * <div class="extra-field">
24 * <?php print $search['extra_field']; ?>
29 * @see template_preprocess_search_block_form()
32 <div
class="container-inline">
33 <?php
if (empty($variables['form']['#block']->subject
)): ?
>
34 <h2
class="element-invisible"><?php
print t('Search form'); ?
></h2
>
36 <?php
print $search_form; ?
>