function delete_track() { global $CRUD; $id = $_REQUEST['id']; $track = fetch_track($id); $title = $track['title']; if (isset($_REQUEST['cancel'])) { message("Cancelled delete of track \"{$title}\""); album_edit($track['album_id']); } delete_track_sql($id); message("Track \"{$title}\" deleted."); album_edit($track['album_id']); }
break; //The users wants to upload an asset into the current album, show lets show him the upload form //The users wants to upload an asset into the current album, show lets show him the upload form case 'submit_media_progress_bar': submit_media_progress_bar(); break; case 'view_submit_media': view_submit_media(); break; case 'view_edit_album': view_edit_album(); break; // users has filled in the edit album form and has confirmed // users has filled in the edit album form and has confirmed case 'edit_album': album_edit(); break; //user has filled in the upload form, we need to handle the data. //user has filled in the upload form, we need to handle the data. case 'submit_media': submit_media(); break; // Called by APC plugin to get info on current upload // Called by APC plugin to get info on current upload case 'get_upload_progress': get_upload_progress(); break; case 'upload_init': upload_init(); break; case 'upload_chunk':