function focal_point_get in Focal Point 7
Returns the focal point of the given image.
The focal point is always returned in the form '12,34' where 12 is the distance from the left edge in percents and 34 is the distance from the top edge in percents. If no focal point is found an empty string is returned.
Parameters
int $fid: The fid of the image field entity in question.
Return value
string Ex. 35,65.
1 call to focal_point_get()
- focal_point_save in ./
focal_point.module - Save the focal point data for a given file.
File
- ./
focal_point.module, line 453
Code
function focal_point_get($fid) {
$result = focal_point_get_multiple(array(
$fid,
));
return isset($result[$fid]) ? $result[$fid] : '';
}