You are here

function _filebrowser_node_content_load in Filebrowser 6.2

Same name and namespace in other branches
  1. 8 filebrowser.common.inc \_filebrowser_node_content_load()
  2. 7.4 filebrowser.common.inc \_filebrowser_node_content_load()
  3. 7.2 filebrowser.common.inc \_filebrowser_node_content_load()
  4. 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

... See full list

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];
}