Skip to content
Snippets Groups Projects
Commit 48002ab0 authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#66595 by AjK: add a default title to the search box, which can be altered/styled out if needed

parent 55a297d9
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1072,6 +1072,7 @@ function search_form_submit($form, &$form_state) {
function search_box(&$form_state, $form_id) {
// Use search_keys instead of keys to avoid ID conflicts with the search block.
$form[$form_id .'_keys'] = array(
'#title' => t('Search this site'),
'#type' => 'textfield',
'#size' => 15,
'#default_value' => '',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment