function _filebrowser_node_content_load in Filebrowser 7.3
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_node_content_load()
- 6.2 includes/backend.inc \_filebrowser_node_content_load()
- 7.4 filebrowser.common.inc \_filebrowser_node_content_load()
- 7.2 filebrowser.common.inc \_filebrowser_node_content_load()
Load a specific node content.
Parameters
$fid integer content fid:
Return value
array content record
7 calls to _filebrowser_node_content_load()
- filebrowser_form_delete_confirm in ./
filebrowser.module - File delete confirmation form CHECK: $node is used but not defined in this function
- filebrowser_form_metadata in ./
filebrowser.pages.inc - filebrowser_form_rename in ./
filebrowser.module - File rename form. CHECK: $node is used but not defined in this function
- filebrowser_page_download in ./
filebrowser.pages.inc - Callback for filebrowser_download/%node menu.
- filebrowser_update_thumbnails in ./
filebrowser.pages.inc
File
- ./
filebrowser.common.inc, line 243 - Misc filebrowser common functions.
Code
function _filebrowser_node_content_load($fid) {
static $contents = array();
if (isset($contents[$fid])) {
return $contents[$fid];
}
$contents[$fid] = (array) db_query("\n SELECT *\n FROM {node_dir_listing_content}\n WHERE fid = :fid", array(
':fid' => $fid,
))
->fetch();
return $contents[$fid];
}