You are here

function gdpr_task_form_submit in General Data Protection Regulation 7

Submit handler for all task bundles.

2 calls to gdpr_task_form_submit()
gdpr_task_edit_gdpr_remove_form_submit in modules/gdpr_tasks/gdpr_tasks.admin.inc
Submit handler for removal tasks.
gdpr_task_edit_gdpr_sar_form_submit in modules/gdpr_tasks/gdpr_tasks.admin.inc
Submit handler for export tasks.

File

modules/gdpr_tasks/gdpr_tasks.admin.inc, line 54
Administrative page and form callbacks for the GDPR Tasks module.

Code

function gdpr_task_form_submit($form, &$form_state) {
  global $user;

  /* @var GDPRTask $task */
  $task = $form_state['task'];

  // General form submission.
  field_attach_submit('gdpr_task', $task, $form, $form_state);

  // Process the task.
  $task->processed_by = $user->uid;
  drupal_set_message(t('Task has been processed.'));
  $task
    ->save();
}