You are here

function imagecache_proportions_get_field_settings in Imagecache Proportions 6

Helper function to get the settings of the image presets.

1 call to imagecache_proportions_get_field_settings()
theme_imagecache_proportions_formatter_vertical_horizontal in ./imagecache_proportions.module
Depending on the dimensions of the image, we switch the preset chosen.

File

./imagecache_proportions.module, line 123
CCK formatter for imagefields that allows the user to select between 3 different imagecache presets depending on the proportions of the original image uploaded. One preset would be squared for more or less squared images, another for wider images and…

Code

function imagecache_proportions_get_field_settings($field_name, $content_type) {
  $field = content_fields($field_name, $content_type);
  return $field['widget'];
}