function _emthumb_file_load in Embedded Media Field 6.2
Same name and namespace in other branches
- 5 contrib/emthumb/emthumb.module \_emthumb_file_load()
- 6.3 contrib/emthumb/emthumb.module \_emthumb_file_load()
- 6 contrib/emthumb/emthumb.module \_emthumb_file_load()
1 call to _emthumb_file_load()
- emthumb_emfield_field_extra in contrib/
emthumb/ emthumb.module - Implements hook_emfield_field_extra(). This is called on field operations to allow us to act on emthumbs.
File
- contrib/
emthumb/ emthumb.module, line 577 - Allows for custom thumbnail overrides to Embedded Media Field.
Code
function _emthumb_file_load($fid = NULL) {
// Don't bother if we weren't passed an fid.
if (isset($fid)) {
// Test to catch fid, eventual 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();
}