function videojs_hls_submit in Video.js (HTML5 Video Player) 7.2
Same name and namespace in other branches
- 7.3 modules/videojs_hls/videojs_hls.module \videojs_hls_submit()
1 string reference to 'videojs_hls_submit'
- videojs_hls_form_alter in modules/
videojs_hls/ videojs_hls.module
File
- modules/
videojs_hls/ videojs_hls.module, line 119 - Provides bandwidth switching for the Video.js player.
Code
function videojs_hls_submit($form, &$form_state) {
if ($form_state['values']['videojs_hls_delivery_type'] != 'static') {
db_delete('variable')
->condition('name', array(
'videojs_hls_delivery_static_scheme',
'videojs_hls_delivery_static_path',
), 'IN')
->execute();
unset($form_state['values']['videojs_hls_delivery_static_scheme']);
unset($form_state['values']['videojs_hls_delivery_static_path']);
}
}