function _emthumb_file_load in Embedded Media Field 5
Same name and namespace in other branches
- 6.3 contrib/emthumb/emthumb.module \_emthumb_file_load()
- 6 contrib/emthumb/emthumb.module \_emthumb_file_load()
- 6.2 contrib/emthumb/emthumb.module \_emthumb_file_load()
1 call to _emthumb_file_load()
- emthumb_emfield_field_extra in contrib/
emthumb/ emthumb.module
File
- contrib/
emthumb/ emthumb.module, line 476
Code
function _emthumb_file_load($fid = NULL) {
// Don't bother if we weren't passed an fid.
if (isset($fid)) {
// Test to catch fid, eventuall plan to have node_load syntax
// once file_attributes table is complete
if (is_numeric($fid)) {
$result = db_query('SELECT * FROM {files} WHERE fid = %d', $fid);
$file = db_fetch_array($result);
return $file ? $file : array();
}
}
return array();
}