You are here

public function video_preset::setSettings in Video 6.5

File

./video.lib.inc, line 146
File containing Video module interfaces and classes

Class

video_preset

Code

public function setSettings(array $settings) {
  $transcoder = variable_get('vid_convertor', 'video_localcommand');
  $this->settings = $settings;
  db_query('REPLACE INTO {video_preset_settings} SET data = "%s", presetid = %d, transcoder = "%s"', serialize($settings), $this->id, $transcoder);
}