Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After just installing the bootstrap theme I started getting the following errors.
* Notice: Undefined index: #type in bootstrap_form_element() (line 44 of {DRUPAL_ROOT}/sites/all/themes/bootstrap/includes/form.inc).
// Add bootstrap class
if ($element['#type'] == "radio" || $element['#type'] == "checkbox") {
$exclude_control = TRUE;
}
else {
$attributes['class'] = array('control-group');
}
Comments
Comment #1
andregriffin CreditAttribution: andregriffin commentedDuplicate of #1892900: Error Reported on `function bootstrap_form_element(` @ form.inc:44