function file_entity_test_edit_form_submit in File Entity (fieldable files) 7
Form submit handler for the file edit form
File
- tests/
file_entity_test.pages.inc, line 87 - Test pages for the File Entity Test module.
Code
function file_entity_test_edit_form_submit($form, &$form_state) {
$file = $form_state['file'];
entity_form_submit_build_entity('file', $file, $form, $form_state);
file_save($file);
drupal_set_message(t('Your changes to the file have been saved.'));
$form_state['redirect'] = 'file-entity-test/file/' . $file->fid;
}