From e9464525eddebfefa7d94d2db3f5b9031041d9d2 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Mon, 3 Jan 2011 00:17:55 +0000 Subject: #1008022 by droplet, jhodgdon, aspilicious: Fixed search-block-form.tpl.php refers to ['submit'], which no longer exists --- modules/search/search-block-form.tpl.php | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) (limited to 'modules/search') diff --git a/modules/search/search-block-form.tpl.php b/modules/search/search-block-form.tpl.php index 6da610a53..002cc8963 100644 --- a/modules/search/search-block-form.tpl.php +++ b/modules/search/search-block-form.tpl.php @@ -3,32 +3,29 @@ /** * @file - * Default theme implementation for displaying a search form within a block - * region. + * Displays the search form block. * * 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: Associative array of search elements. Can be used to print each + * form element separately. * - * Default keys within $search: + * Default elements within $search: * - $search['search_block_form']: Text input area wrapped in a div. - * - $search['submit']: Form submit button. - * - $search['hidden']: Hidden form elements. Used to validate forms when submitted. - * - * 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 - * existence before printing. The default keys will always exist. + * - $search['actions']: Rendered form buttons. + * - $search['hidden']: Hidden form elements. Used to validate forms when + * submitted. * + * Modules can add to the search form, so it is recommended to check for their + * existence before printing. The default keys will always exist. To check for + * a module-provided field, use code like this: + * @code * *
* *
* - * - * To check for all available data within $search, use the code below. - * - * '. check_plain(print_r($search, 1)) .''; ?> + * @endcode * * @see template_preprocess_search_block_form() */ -- cgit v1.2.3