C:/drupal/modules/search/search-block-form.tpl.php File Reference

Go to the source code of this file.


Variables

print $search_form


Detailed Description

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'])): ?>

<?php print $search['extra_field']; ?>
<?php endif; ?>

To check for all available data within $search, use the code below.

<?php print '

'. check_plain(print_r($search, 1)) .'
'; ?>

See also:
template_preprocess_search_block_form()

Definition in file search-block-form.tpl.php.


Variable Documentation

print $search_form

Definition at line 36 of file search-block-form.tpl.php.


Generated on Mon Jun 2 15:08:28 2008 for SimpleTest by  1.5.5