function imagefield_crop_preset_load_by_name in Imagefield Crop 7.3
Implements hook_load().
Parameters
$pid:
Return value
mixed
2 calls to imagefield_crop_preset_load_by_name()
- imagefield_crop_field_formatter_settings_summary in ./
imagefield_crop.module - Implements hook_field_formatter_settings_summary().
- imagefield_crop_field_formatter_view in ./
imagefield_crop.module - Implementation hook__field_formatter_view().
1 string reference to 'imagefield_crop_preset_load_by_name'
- imagefield_crop_preset_form in ./
imagefield_crop.module - Implements form builder imagefield_crop_preset_form().
File
- ./
imagefield_crop.module, line 1191
Code
function imagefield_crop_preset_load_by_name($name) {
$presets = imagefield_crop_presets_load_multiple_by_name(array(
$name,
));
return reset($presets);
}