function vartheme_preprocess_form_element in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
Overrides theme_form_element().
File
- themes/
vartheme/ templates/ system/ form-element.vars.php, line 10 - form-element.vars.php
Code
function vartheme_preprocess_form_element(&$variables) {
$element =& $variables['element'];
// Add a span to wrap title for radio elements to help with styling
if (isset($element['#title']) && $element['#type'] == "radio") {
$element['#title'] = '<span>' . $element['#title'] . '</span>';
}
}