function gdpr_consent_form_field_ui_field_storage_add_form_alter in General Data Protection Regulation 3.0.x
Same name and namespace in other branches
- 8.2 modules/gdpr_consent/gdpr_consent.module \gdpr_consent_form_field_ui_field_storage_add_form_alter()
- 8 modules/gdpr_consent/gdpr_consent.module \gdpr_consent_form_field_ui_field_storage_add_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
gdpr_consent/ gdpr_consent.module, line 13 - Module file for the GDPR Consent module.
Code
function gdpr_consent_form_field_ui_field_storage_add_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['#validate'][] = 'gdpr_consent_field_add_validation';
}