function _filebrowser_node_content_load in Filebrowser 6.2
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_node_content_load()
- 7.4 filebrowser.common.inc \_filebrowser_node_content_load()
- 7.2 filebrowser.common.inc \_filebrowser_node_content_load()
- 7.3 filebrowser.common.inc \_filebrowser_node_content_load()
Load a specific node content.
Parameters
$fid content fid:
Return value
content record
6 calls to _filebrowser_node_content_load()
- filebrowser_form_delete_confirm in ./
filebrowser.module - File delete confirmation form
- filebrowser_form_delete_confirm_submit in ./
filebrowser.module - File delete confirmation form submit
- filebrowser_form_metadata in ./
filebrowser.pages.inc - filebrowser_page_download in includes/
downloads.inc - Callback for filebrowser_download/%node menu.
- filebrowser_update_thumbnails in ./
filebrowser.pages.inc
File
- includes/
backend.inc, line 43
Code
function _filebrowser_node_content_load($fid) {
static $contents = array();
if (isset($contents[$fid])) {
return $contents[$fid];
}
$contents[$fid] = db_fetch_array(db_query("\n \tSELECT *\n \tFROM {node_dir_listing_content}\n \tWHERE fid=%d", $fid));
return $contents[$fid];
}