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) {
if (isset($variables['element']['#attributes'])) {
$variables['input_attributes'] = new Attribute($variables['element']['#attributes']);
}
switch ($variables['type']) {
case 'checkbox':
$variables['customtype'] = theme_get_setting('bootstrap_barrio_checkbox');
break;
if (isset($variables['type'])) {
switch ($variables['type']) {
case 'checkbox':
$variables['customtype'] = theme_get_setting('bootstrap_barrio_checkbox');
break;
case 'radio':
$variables['customtype'] = theme_get_setting('bootstrap_barrio_radio');
break;
case 'radio':
$variables['customtype'] = theme_get_setting('bootstrap_barrio_radio');
break;
default:
break;
default:
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