function osmplayer_mediafront_preset_save in MediaFront 6
Same name and namespace in other branches
- 6.2 players/osmplayer/osmplayer.module \osmplayer_mediafront_preset_save()
- 7 players/osmplayer/osmplayer.module \osmplayer_mediafront_preset_save()
Implementation of hook_mediafront_preset_save
File
- players/
osmplayer/ osmplayer.module, line 229
Code
function osmplayer_mediafront_preset_save($preset) {
// We need to delete the temporary CSS files.
$settings = isset($preset['settings']) ? $preset['settings'] : array();
$settings['preset'] = $preset['name'];
// Get the media player.
$player = osmplayer_get_player_object($settings);
if ($player) {
// Now reset the CSS files.
$player->template
->resetCSS();
}
}