function webform_preprocess_radios in Webform 6.x
Same name and namespace in other branches
- 8.5 includes/webform.theme.inc \webform_preprocess_radios()
Implements hook_preprocess_radios() for radios templates.
See also
\Drupal\webform\Plugin\WebformElement\OptionsBase
File
- includes/
webform.theme.inc, line 287 - Theme hooks, preprocessor, and suggestions.
Code
function webform_preprocess_radios(&$variables) {
if (!WebformElementHelper::isWebformElement($variables['element'])) {
return;
}
_webform_preprocess_options($variables);
}