At the end of Bootstrap's implementation of theme_webform_element() in the file templates/webform/webform-element.func.php, there is a direct call to the function bootstrap_form_element(). This works fine but means that a subtheme can not override theme_form_element() without also overriding theme_webform_element().

Simple fix:

// Render with bootstrap_form_element().
bootstrap_include('bootstrap', 'templates/system/form-element.func.php');
return bootstrap_form_element($variables);

Becomes:

// Render with bootstrap_form_element().
return theme('form_element', $variables);
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

duncan.moo created an issue. See original summary.

duncan.moo’s picture

duncan.moo’s picture

Assigned: duncan.moo » Unassigned
Status: Active » Needs review

  • markcarver committed 7d6e7c5 on 7.x-3.x authored by duncan.moo
    Issue #2815741 by duncan.moo: Can not override bootstrap_form_element...
markhalliwell’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.