Skip to content
Snippets Groups Projects
Verified Commit 73f23f1c authored by Alexandre Dias's avatar Alexandre Dias
Browse files

ISAICP-9627: Remove the "Search site wide" button.

parent aa4b0ab3
No related branches found
No related tags found
1 merge request!215Release 2.3.2
......@@ -76,6 +76,7 @@ function ventuno_form_views_exposed_form_alter(array &$form, FormStateInterface
// Ensure the ID is unique, using "search-box" as base.
$form['keys']['#id'] = Html::getUniqueId('search-box');
$form['#id'] = Html::getUniqueId($form['#id']);
$form['actions']['submit']['#access'] = FALSE;
}
if ($view->id() === 'search_oss_catalogue') {
......@@ -88,6 +89,7 @@ function ventuno_form_views_exposed_form_alter(array &$form, FormStateInterface
$form['oss_keys']['#title_display'] = 'invisible';
$form['oss_keys']['#attributes']['placeholder'] = t('Start typing to search…');
$form['oss_keys']['#joinup_parent'] = $form_id . '_' . $view->id();
$form['actions']['submit']['#access'] = FALSE;
}
if ($route_name != 'view.search.page_1' && $view->id() === 'search' || $route_name != 'view.search_oss_catalogue.search' && $view->id() === 'search_oss_catalogue') {
......
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