You are here

function focal_point_delete in Focal Point 7

Deletes the focal point for the given file entity.

Parameters

int $fid: The fid of the image field entity in question.

2 calls to focal_point_delete()
focal_point_file_delete in ./focal_point.module
Implements hook_file_delete().
focal_point_save in ./focal_point.module
Save the focal point data for a given file.

File

./focal_point.module, line 481

Code

function focal_point_delete($fid) {
  _focal_point_flush($fid);
  db_delete('focal_point')
    ->condition('fid', $fid)
    ->execute();

  // Invoke hook_focal_point_delete hooks.
  module_invoke_all('focal_point_delete', $fid);
}