function video_load in Video 5
Same name and namespace in other branches
- 6 video.module \video_load()
- 6.2 video.module \video_load()
Implementation of hook_load()
Parameters
$node: object or boolean FALSE on error
File
- ./
video.module, line 814 - Display video in Quicktime MOV, Realmedia RM, Flash FLV & SWF, or Windows Media WMV formats.
Code
function video_load($node) {
if (is_numeric($node->vid)) {
$node = db_fetch_object(db_query("SELECT * FROM {video} WHERE vid = %d", $node->vid));
// load serialized data for plug-ins
$node->serial_data = unserialize($node->serialized_data);
return $node;
}
else {
return false;
}
}