function webform_bootstrap_webform_element_webform_terms_of_service_alter in Webform 8.5
Same name and namespace in other branches
- 6.x modules/webform_bootstrap/webform_bootstrap.module \webform_bootstrap_webform_element_webform_terms_of_service_alter()
Implements hook_webform_element_ELEMENT_TYPE_alter().
File
- modules/
webform_bootstrap/ webform_bootstrap.module, line 28 - Helps support Webform to Bootstrap integration.
Code
function webform_bootstrap_webform_element_webform_terms_of_service_alter(array &$element, \Drupal\Core\Form\FormStateInterface $form_state, array $context) {
// Terms of service agreement must always be displayed, so disable
// smart description.
$element['#smart_description'] = FALSE;
}