function brightcove_playlist_delete_form_submit in Brightcove Video Connect 7.5
Same name and namespace in other branches
- 7.7 brightcove.playlist.inc \brightcove_playlist_delete_form_submit()
- 7.3 brightcove.module \brightcove_playlist_delete_form_submit()
- 7.4 brightcove.module \brightcove_playlist_delete_form_submit()
- 7.6 brightcove.playlist.inc \brightcove_playlist_delete_form_submit()
Playlist delete confirm form submit handler.
_state
Parameters
$form:
File
- ./
brightcove.module, line 212 - Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.
Code
function brightcove_playlist_delete_form_submit($form, &$form_state) {
brightcove_playlist_delete($form_state['values']['playlist_id']);
// Invalidate playlist cache.
brightcove_invalidate_cache('brightcove:playlist:' . $form_state['values']['playlist_id']);
brightcove_invalidate_cache('brightcove:playlist:list', TRUE);
// Redirect the user the playlists listing page.
$form_state['redirect'] = array(
'admin/config/media/brightcove/playlist',
);
}