function video_load in Video 6.2
Same name and namespace in other branches
- 5 video.module \video_load()
- 6 video.module \video_load()
Implementation of hook_load()
Parameters
$node: object or boolean FALSE on error
File
- ./
video.module, line 937 - video.module
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;
}
}