You are here

function video_update_9 in Video 5

Update the vidfile for youtube videos so they will work again

File

./video.install, line 265

Code

function video_update_9() {
  $res[] = update_sql("UPDATE {video} SET vidfile=CONCAT('http://www.youtube.com/watch?v=',vidfile) WHERE vtype='youtube' AND vidfile NOT LIKE '%youtube.com/watch%'");
  return $res;
}