function accessibility_test_add_form_submit

cis7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)
cle7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)
elmsmedia7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)
icor7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)
meedjum_blog7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)
mooc7 accessibility.module accessibility_test_add_form_submit($form, &$form_state)

Submit callback for saving accessibility test entities.

File

sites/all/modules/ulmus/accessibility/accessibility.module, line 510

Code

function accessibility_test_add_form_submit($form, &$form_state) {
  $test_submission = (object) $form_state['values'];
  $test_submission->type = 'accessibility_test';
  field_attach_submit('accessibility_test', $test_submission, $form, $form_state);
  $test = accessibility_test_save($test_submission);
  $form_state['redirect'] = "accessibility-test/$test->test_id";
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.