function _epsacrop_fid_exists in EPSA Crop - Image Cropping 8.2
Same name and namespace in other branches
- 6.2 epsacrop.module \_epsacrop_fid_exists()
- 6 epsacrop.module \_epsacrop_fid_exists()
- 7.2 epsacrop.module \_epsacrop_fid_exists()
Check if we've coordonates for one file.
@access private
Parameters
int $fid:
Return value
bool
2 calls to _epsacrop_fid_exists()
- _epsacrop_get_coords_from_fid in ./
epsacrop.module - Get all coordonates for one file.
- _epsacrop_save_coords in ./
epsacrop.module - Save the coordonates in the database.
File
- ./
epsacrop.module, line 643 - The main file of module
Code
function _epsacrop_fid_exists($fid) {
if (!empty($fid)) {
return db_select('epsacrop_files', 'e')
->fields('e')
->condition('fid', $fid)
->execute()
->rowCount();
}
return 0;
}