You are here

function gdpr_task_form in General Data Protection Regulation 7

Form callback for all task bundles.

2 calls to gdpr_task_form()
gdpr_task_edit_gdpr_remove_form in modules/gdpr_tasks/gdpr_tasks.admin.inc
Form callback for removal tasks.
gdpr_task_edit_gdpr_sar_form in modules/gdpr_tasks/gdpr_tasks.admin.inc
Form callback for export tasks.

File

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

Code

function gdpr_task_form($form, &$form_state) {
  $task = $form_state['task'];
  field_attach_form('gdpr_task', $task, $form, $form_state);
  if ($task->user_id == $task->requested_by) {
    $form['gdpr_tasks_notes']['#access'] = FALSE;
  }
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save'),
    '#weight' => 40,
  );
  return $form;
}