You are here

function _epsacrop_add_file in EPSA Crop - Image Cropping 7.2

Same name and namespace in other branches
  1. 8.2 epsacrop.module \_epsacrop_add_file()
  2. 6.2 epsacrop.module \_epsacrop_add_file()
  3. 6 epsacrop.module \_epsacrop_add_file()

Insert coordonates for one file in the database.

@access private

Parameters

int $fid:

array $coords:

Return value

void

1 call to _epsacrop_add_file()
_epsacrop_save_coords in ./epsacrop.module
Save the coordonates in the database.

File

./epsacrop.module, line 948
The main file of module

Code

function _epsacrop_add_file($fid, $coords) {
  db_insert('epsacrop_files')
    ->fields(array(
    'fid' => $fid,
    'coords' => serialize($coords),
  ))
    ->execute();
}