C:/drupal/modules/search/search-theme-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 directly into the theme layout. Not to be confused with the search block or the search page.

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_theme_form()

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


Variable Documentation

print $search_form

Definition at line 37 of file search-theme-form.tpl.php.


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