You are here

function bynder_image_effect_form_validate in Bynder 7

1 string reference to 'bynder_image_effect_form_validate'
bynder_image_effect_form in includes/bynder.formatters.inc
Form structure for the image scale form.

File

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

Code

function bynder_image_effect_form_validate($element, &$form_state) {
  if (!variable_get('bynder_custom_derivative')) {
    form_error($element, t('You need to set up the <a href="' . url(BYNDER_SETTINGS_URL, array(
      'absolute' => true,
    )) . '" class="oauth-link" target="_blank">Bynder custom derivative name</a>
                before you can add image styles.'));
  }
}