You are here

function video_preset_load in Video 6.5

Same name and namespace in other branches
  1. 7.2 modules/video_ui/video_ui.module \video_preset_load()
  2. 7 modules/video_ui/video_ui.module \video_preset_load()

File

./video.module, line 169
Main file of the Video module.

Code

function video_preset_load($id) {
  $data = db_fetch_object(db_query('SELECT * FROM {video_preset} WHERE id = %d', intval($id)));
  if (!$data) {
    return FALSE;
  }
  module_load_include('lib.inc', 'video');
  return new video_preset($data);
}