You are here

function video_update_6 in Video 5

Set vtype for all the videos

File

./video.install, line 212

Code

function video_update_6() {

  /* this function should be able to be run again and again until
   * all the videos have been updated */
  $videos = db_query("SELECT nid,vidfile FROM {video} WHERE vtype=''");
  while ($video = db_fetch_object($videos)) {
    db_query("UPDATE {video} SET vtype='%s' WHERE nid=%d", _video_update_6_get_vtype($video), $video->nid);
  }
  return array();
}