You are here

function _focal_point_save in Focal Point 7

Helper function to save a FocalPoint record, and invoke related hooks.

Parameters

array $record: Array with records.

array $primary_keys: Array with primary keys.

1 call to _focal_point_save()
focal_point_save in ./focal_point.module
Save the focal point data for a given file.

File

./focal_point.module, line 388

Code

function _focal_point_save($record, $primary_keys = array()) {

  // Give other modules a chance to change the focal point.
  drupal_alter('focal_point_pre_save', $focal_point, $fid, $existing_focal_point);
  drupal_write_record('focal_point', $record, $primary_keys);
  _focal_point_flush($record['fid']);

  // Invoke hook_focal_point_save hooks.
  module_invoke_all('focal_point_save', $record);
}