You are here

function media_edit_submit in D7 Media 7

Form submit handler for the media submit form.

1 string reference to 'media_edit_submit'
media_edit in includes/media.pages.inc
Form builder: Builds the edit file form.

File

includes/media.pages.inc, line 366
Common pages for the Media module.

Code

function media_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'] = 'media/' . $file->fid;
}