form-element.vars.php in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7.3
File
themes/vartheme/templates/system/form-element.vars.phpView source
<?php
/**
* @file
* form-element.vars.php
*/
/**
* Overrides theme_form_element().
*/
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>';
}
}
Functions
Name | Description |
---|---|
vartheme_preprocess_form_element | Overrides theme_form_element(). |