Revision 1f623f01
Added by Assos Assos almost 8 years ago
drupal7/sites/all/themes/bootstrap/templates/webform/webform-element.func.php | ||
---|---|---|
14 | 14 |
$element = &$variables['element']; |
15 | 15 |
|
16 | 16 |
// Inline title. |
17 |
if ($element['#title_display'] === 'inline') { |
|
17 |
if (isset($element['#title_display']) && $element['#title_display'] === 'inline') {
|
|
18 | 18 |
$element['#title_display'] = 'before'; |
19 | 19 |
$element['#wrapper_attributes']['class'][] = 'form-inline'; |
20 | 20 |
} |
... | ... | |
29 | 29 |
$element['#input_group'] = TRUE; |
30 | 30 |
} |
31 | 31 |
|
32 |
// Render with bootstrap_form_element(). |
|
33 |
bootstrap_include('bootstrap', 'templates/system/form-element.func.php'); |
|
34 |
return bootstrap_form_element($variables); |
|
32 |
// Render as a normal "form_element" theme hook. |
|
33 |
return theme('form_element', $variables); |
|
35 | 34 |
} |
Also available in: Unified diff
Weekly update of contrib modules