function bynder_image_effect_info in Bynder 7
Implements hook_image_effect_info(). declare effect callbacks
File
- includes/
bynder.formatters.inc, line 72 - bynder/includes/bynder.formatters.inc Formatters for Media: Bynder.
Code
function bynder_image_effect_info() {
return array(
'bynder_custom_resolution_crop' => array(
'label' => t('Bynder custom resolution crop'),
'help' => t('Crops to the exact dimensions specified. Please note that in order for this function to work you need to call this effect only as it uses an external image from Bynder. Due to this external nature additional drupal effects can\'t be applied'),
'effect callback' => 'bynder_custom_resolution_effect',
'dimensions callback' => 'bynder_custom_resolution_dimensions',
'form callback' => 'bynder_image_effect_form',
),
'bynder_custom_resolution_extend' => array(
'label' => t('Bynder custom resolution extend'),
'help' => t('Resizes the image and extends to return the dimensions specified. Please note that in order for this function to work you need to call this effect only as it uses an external image from Bynder. Due to this external nature additional drupal effects can\'t be applied'),
'effect callback' => 'bynder_custom_resolution_effect',
'dimensions callback' => 'bynder_custom_resolution_dimensions',
'form callback' => 'bynder_image_effect_form',
),
'bynder_custom_resolution_resize' => array(
'label' => t('Bynder custom resolution resize'),
'help' => t('Resizes maintaining aspect ratio. Please note that in order for this function to work you need to call this effect only as it uses an external image from Bynder. Due to this external nature additional drupal effects can\'t be applied'),
'effect callback' => 'bynder_custom_resolution_effect',
'dimensions callback' => 'bynder_custom_resolution_dimensions',
'form callback' => 'bynder_image_effect_form',
),
);
}