function _filebrowser_node_content_load in Filebrowser 7.4
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.2 filebrowser.common.inc \_filebrowser_node_content_load()
- 7.3 filebrowser.common.inc \_filebrowser_node_content_load()
Load a specific node content.
Parameters
int $fid 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 - _state
- 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 244 - Misc filebrowser common functions.
Code
function _filebrowser_node_content_load($fid) {
static $contents = array();
if (isset($contents[$fid])) {
return $contents[$fid];
}
$query = "SELECT * FROM {node_dir_listing_content} WHERE fid = :fid";
$contents[$fid] = db_query($query, array(
':fid' => $fid,
))
->fetchAssoc();
return $contents[$fid];
}