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
No related merge requests found
......@@ -441,6 +441,7 @@ function bootstrap_barrio_preprocess_form_element(&$variables) {
* Implements hook_preprocess_select() for adding classes to select elements.
*/
function bootstrap_barrio_preprocess_select(&$variables) {
$variables['customtype'] = theme_get_setting('bootstrap_barrio_select');
if (isset($variables['attributes']['class'])) {
if (is_object($variables['attributes']['class'])) {
if (in_array('error', $variables['attributes']['class']->value())) {
......@@ -462,13 +463,6 @@ function bootstrap_barrio_preprocess_form_element_label(&$variables) {
$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.
*/
......
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