You are here

function osmplayer_mediafront_preset_save in MediaFront 6.2

Same name and namespace in other branches
  1. 6 players/osmplayer/osmplayer.module \osmplayer_mediafront_preset_save()
  2. 7 players/osmplayer/osmplayer.module \osmplayer_mediafront_preset_save()

Implementation of hook_mediafront_preset_save

File

players/osmplayer/osmplayer.module, line 219

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();
  }
}