You are here

function _imagecache_file_load in ImageCache 5

1 call to _imagecache_file_load()
imagecache_field_formatter in ./imagecache.module
Implementation of hook_field_formatter().

File

./imagecache.module, line 266
Dynamic image resizer and image cacher.

Code

function _imagecache_file_load($fid = NULL) {

  // Don't bother if we weren't passed an fid.
  if (isset($fid) && is_numeric($fid)) {
    $result = db_query('SELECT * FROM {files} WHERE fid = %d', $fid);
    $file = db_fetch_array($result);
  }
  return $file ? $file : array();
}