You are here

function bynder_custom_resolution_dimensions in Bynder 7

1 string reference to 'bynder_custom_resolution_dimensions'
bynder_image_effect_info in includes/bynder.formatters.inc
Implements hook_image_effect_info(). declare effect callbacks

File

includes/bynder.formatters.inc, line 152
bynder/includes/bynder.formatters.inc Formatters for Media: Bynder.

Code

function bynder_custom_resolution_dimensions(array &$dimensions, array $data) {
  if ($dimensions['width'] && $dimensions['height']) {
    $dimensions['width'] = $data['width'];
    $dimensions['height'] = $data['height'];
  }
}