function gdpr_consent_agreement_form_submit in General Data Protection Regulation 7
Submit handler for consent agreement entity form.
File
- modules/
gdpr_consent/ includes/ gdpr_consent.admin.inc, line 88 - Admin pages file for the GDPR Consent module.
Code
function gdpr_consent_agreement_form_submit(&$form, &$form_state) {
$entity = entity_ui_form_submit_build_entity($form, $form_state);
$entity
->save();
drupal_set_message(t('@title agreement has been saved.', array(
'@title' => $entity->title,
)));
$form_state['redirect'] = 'admin/config/gdpr/agreements';
}