Skip to content
Snippets Groups Projects
Commit 10040d5b authored by Brooke Heaton's avatar Brooke Heaton Committed by Alberto Siles
Browse files

Issue #3136067 by brooke_heaton: Undefined index: type in...

Issue #3136067 by brooke_heaton: Undefined index: type in bootstrap_barrio_preprocess_form_element()
parent 1e59b502
No related branches found
No related tags found
No related merge requests found
...@@ -385,17 +385,19 @@ function bootstrap_barrio_preprocess_form_element(&$variables) { ...@@ -385,17 +385,19 @@ function bootstrap_barrio_preprocess_form_element(&$variables) {
if (isset($variables['element']['#attributes'])) { if (isset($variables['element']['#attributes'])) {
$variables['input_attributes'] = new Attribute($variables['element']['#attributes']); $variables['input_attributes'] = new Attribute($variables['element']['#attributes']);
} }
switch ($variables['type']) { if (isset($variables['type'])) {
case 'checkbox': switch ($variables['type']) {
$variables['customtype'] = theme_get_setting('bootstrap_barrio_checkbox'); case 'checkbox':
break; $variables['customtype'] = theme_get_setting('bootstrap_barrio_checkbox');
break;
case 'radio': case 'radio':
$variables['customtype'] = theme_get_setting('bootstrap_barrio_radio'); $variables['customtype'] = theme_get_setting('bootstrap_barrio_radio');
break; break;
default: default:
break; break;
}
} }
} }
......
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