function filebrowser_load in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.module \filebrowser_load()
- 7.4 filebrowser.module \filebrowser_load()
- 7.2 filebrowser.module \filebrowser_load()
- 7.3 filebrowser.module \filebrowser_load()
Implementation of hook_load().
File
- ./
filebrowser.module, line 202
Code
function filebrowser_load($node) {
$data = db_fetch_object(db_query('SELECT * FROM {node_dir_listing} WHERE nid = %d', $node->nid));
$additions = (object) unserialize($data->properties);
$additions->folder_path = $data->folder_path;
$additions->nid = $data->nid;
_filebrowser_prepare_record($additions, TRUE);
return $additions;
}