summaryrefslogtreecommitdiff
path: root/modules/search/search.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/search/search.module')
-rw-r--r--modules/search/search.module37
1 files changed, 1 insertions, 36 deletions
diff --git a/modules/search/search.module b/modules/search/search.module
index c72dfe5b7..35b817d3f 100644
--- a/modules/search/search.module
+++ b/modules/search/search.module
@@ -117,10 +117,6 @@ function search_help($path, $arg) {
*/
function search_theme() {
return array(
- 'search_theme_form' => array(
- 'arguments' => array('form' => NULL),
- 'template' => 'search-theme-form',
- ),
'search_block_form' => array(
'arguments' => array('form' => NULL),
'template' => 'search-block-form',
@@ -892,7 +888,7 @@ function search_form($form, &$form_state, $action = '', $keys = '', $type = NULL
}
/**
- * Form builder; Output a search form for the search block and the theme's search box.
+ * Form builder; Output a search form for the search block's search box.
*
* @ingroup forms
* @see search_box_form_submit()
@@ -930,33 +926,6 @@ function search_box_form_submit($form, &$form_state) {
}
/**
- * Process variables for search-theme-form.tpl.php.
- *
- * The $variables array contains the following arguments:
- * - $form
- *
- * @see search-theme-form.tpl.php
- */
-function template_preprocess_search_theme_form(&$variables) {
- $variables['search'] = array();
- $hidden = array();
- // Provide variables named after form keys so themers can print each element independently.
- foreach (element_children($variables['form']) as $key) {
- $type = $variables['form'][$key]['#type'];
- if ($type == 'hidden' || $type == 'token') {
- $hidden[] = drupal_render($variables['form'][$key]);
- }
- else {
- $variables['search'][$key] = drupal_render($variables['form'][$key]);
- }
- }
- // Hidden form elements have no value to themers. No need for separation.
- $variables['search']['hidden'] = implode($hidden);
- // Collect all form elements to make it easier to print the whole form.
- $variables['search_form'] = implode($variables['search']);
-}
-
-/**
* Process variables for search-block-form.tpl.php.
*
* The $variables array contains the following arguments:
@@ -1127,10 +1096,6 @@ function _search_excerpt_replace(&$text) {
}
function search_forms() {
- $forms['search_theme_form']= array(
- 'callback' => 'search_box',
- 'callback arguments' => array('search_theme_form'),
- );
$forms['search_block_form']= array(
'callback' => 'search_box',
'callback arguments' => array('search_block_form'),