Version 1.1 (checked in on 2007/10/31 at 18:06:38 by dries)
search-block-form.tpl.php Default theme implementation for displaying a search form within a block region.
Available variables:
Default keys within $search:
Since $search is keyed, a direct print of the form element is possible. Modules can add to the search form so it is recommended to check for their existance before printing. The default keys will always exist.
<?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>'; ?>
template_preprocess_search_block_form()
Kommentare
Kommentar hinzufügen