Skip to content
Snippets Groups Projects
Commit 55f43c09 authored by Alberto Siles's avatar Alberto Siles Committed by alberto_sv
Browse files

Fix select conflict

parent 87b7c586
No related branches found
Tags 5.1.6
2 merge requests!79Resolve #3204900 "Search submit button",!51Issue #3357879: node-preview background beeing overwritten
...@@ -441,6 +441,7 @@ function bootstrap_barrio_preprocess_form_element(&$variables) { ...@@ -441,6 +441,7 @@ function bootstrap_barrio_preprocess_form_element(&$variables) {
* Implements hook_preprocess_select() for adding classes to select elements. * Implements hook_preprocess_select() for adding classes to select elements.
*/ */
function bootstrap_barrio_preprocess_select(&$variables) { function bootstrap_barrio_preprocess_select(&$variables) {
$variables['customtype'] = theme_get_setting('bootstrap_barrio_select');
if (isset($variables['attributes']['class'])) { if (isset($variables['attributes']['class'])) {
if (is_object($variables['attributes']['class'])) { if (is_object($variables['attributes']['class'])) {
if (in_array('error', $variables['attributes']['class']->value())) { if (in_array('error', $variables['attributes']['class']->value())) {
...@@ -462,13 +463,6 @@ function bootstrap_barrio_preprocess_form_element_label(&$variables) { ...@@ -462,13 +463,6 @@ function bootstrap_barrio_preprocess_form_element_label(&$variables) {
$element = $variables['element']; $element = $variables['element'];
} }
/**
* Implements hook_preprocess_HOOK() for select.html.twig.
*/
function bootstrap_barrio_preprocess_select(&$variables) {
$variables['customtype'] = theme_get_setting('bootstrap_barrio_select');
}
/** /**
* Implements hook_preprocess_HOOK() for file-managed-file.html.twig. * Implements hook_preprocess_HOOK() for file-managed-file.html.twig.
*/ */
......
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