1 |
4eeb3b46
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
|
|
function bootstrap_webform_element(&$variables) {
|
14 |
|
|
$element = &$variables['element'];
|
15 |
|
|
|
16 |
|
|
|
17 |
1f623f01
|
Assos Assos
|
if (isset($element['#title_display']) && $element['#title_display'] === 'inline') {
|
18 |
4eeb3b46
|
Assos Assos
|
$element['#title_display'] = 'before';
|
19 |
|
|
$element['#wrapper_attributes']['class'][] = 'form-inline';
|
20 |
|
|
}
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
if (!empty($element['#webform_component']['extra']['description_above'])) {
|
24 |
|
|
$element['#description_display'] = 'before';
|
25 |
|
|
}
|
26 |
|
|
|
27 |
|
|
|
28 |
|
|
if (!empty($element['#field_prefix']) || !empty($element['#field_suffix'])) {
|
29 |
|
|
$element['#input_group'] = TRUE;
|
30 |
|
|
}
|
31 |
|
|
|
32 |
1f623f01
|
Assos Assos
|
|
33 |
|
|
return theme('form_element', $variables);
|
34 |
4eeb3b46
|
Assos Assos
|
} |