You are here

function file_entity_edit_submit in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.pages.inc \file_entity_edit_submit()
  2. 7.2 file_entity.pages.inc \file_entity_edit_submit()

Form submit handler for the media submit form.

1 string reference to 'file_entity_edit_submit'
file_entity_edit in ./file_entity.pages.inc
Form builder: Builds the edit file form.

File

./file_entity.pages.inc, line 80
Supports file operations including View, Edit, and Delete.

Code

function file_entity_edit_submit($form, &$form_state) {
  $file = $form_state['file'];
  entity_form_submit_build_entity('file', $file, $form, $form_state);
  file_save($file);
  $form_state['redirect'] = 'file/' . $file->fid;
}