Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
a8f20420
Commit
a8f20420
authored
18 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#87049
by edkwh, chx and hunmonk: fixed the form in the search block.
parent
5eab30f6
No related branches found
Branches containing commit
Tags
11-69241
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/search/search.module
+9
-3
9 additions, 3 deletions
modules/search/search.module
with
9 additions
and
3 deletions
modules/search/search.module
+
9
−
3
View file @
a8f20420
...
...
@@ -1045,7 +1045,7 @@ function search_form_submit($form_id, $form_values) {
/**
* Output a search form for the search block and the theme's search box.
*/
function
search_box
()
{
function
search_box
(
$form_id
)
{
// Use search_keys instead of keys to avoid ID conflicts with the search block.
$form
[
$form_id
.
'_keys'
]
=
array
(
'#type'
=>
'textfield'
,
...
...
@@ -1285,7 +1285,13 @@ function theme_search_page($results, $type) {
}
function
search_forms
()
{
$forms
[
'search_theme_form'
][
'callback'
]
=
'search_box'
;
$forms
[
'search_block_form'
][
'callback'
]
=
'search_box'
;
$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'
),
);
return
$forms
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment