function webform_bootstrap_link_alter in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_bootstrap/webform_bootstrap.module \webform_bootstrap_link_alter()
Implements hook_link_alter().
File
- modules/
webform_bootstrap/ webform_bootstrap.module, line 129 - Helps support Webform to Bootstrap integration.
Code
function webform_bootstrap_link_alter(&$variables) {
if (!_webform_bootstrap_is_active_theme()) {
return;
}
// Convert .button classes to .btn CSS classes.
if (isset($variables['options']['attributes']['class']) && is_array($variables['options']['attributes']['class'])) {
_webform_bootstrap_convert_button_classes($variables['options']['attributes']['class']);
}
}