function media_edit_delete_submit in D7 Media 7
Form submit handler for the Delete button on the media edit form.
1 string reference to 'media_edit_delete_submit'
- media_edit in includes/
media.pages.inc - Form builder: Builds the edit file form.
File
- includes/
media.pages.inc, line 376 - Common pages for the Media module.
Code
function media_edit_delete_submit($form, &$form_state) {
$fid = $form_state['values']['fid'];
$destination = array();
if (isset($_GET['destination'])) {
$destination = drupal_get_destination();
unset($_GET['destination']);
}
$form_state['redirect'] = array(
'media/' . $fid . '/delete',
array(
'query' => $destination,
),
);
}