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";
}