You are here

function gdpr_consent_admin_form_validate in GDPR Consent 7

Implements hook_form_validate().

1 string reference to 'gdpr_consent_admin_form_validate'
gdpr_consent_configuration in ./gdpr_consent.admin.inc
Module configuration options form.

File

./gdpr_consent.admin.inc, line 77
Administration UI for the GDPR Consent module.

Code

function gdpr_consent_admin_form_validate($form, &$form_state) {
  $versions = gdpr_consent_versions_latest_get();
  foreach ($versions as $version) {
    if (empty($version['version'])) {
      form_set_error('gdpr_consent_disallow_without', t('Please create a consent version first.'));
    }
  }
}