function accessibility_test_edit_form_submit

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

Form API submit callback for the model form.

@todo remove hard-coded link

1 string reference to 'accessibility_test_edit_form_submit'
accessibility_test_edit_form in sites/all/modules/ulmus/accessibility/accessibility.module
Edit form for accessibility tests.

File

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

Code

function accessibility_test_edit_form_submit(&$form, &$form_state) {
  $test = $form_state['accessibility_test'];
  $test->changed = time();

  field_attach_submit('accessibility_test', $test, $form, $form_state);
  $test->name = $form_state['values']['name'];
  $test->quail_name = $form_state['values']['quail_name'];
  $test->severity = $form_state['values']['severity'];
  $test->status = $form_state['values']['status'];
  accessibility_test_save($test);

  $form_state['redirect'] = 'accessibility-test/' . $test->test_id;
}