You are here

function _brightcove_field_formatter_dimension_validate in Brightcove Video Connect 7.7

Same name and namespace in other branches
  1. 7.2 brightcove_field/brightcove_field.module \_brightcove_field_formatter_dimension_validate()
  2. 7.3 brightcove_field/brightcove_field.module \_brightcove_field_formatter_dimension_validate()
  3. 7.4 brightcove_field/brightcove_field.module \_brightcove_field_formatter_dimension_validate()
  4. 7.5 brightcove_field/brightcove_field.module \_brightcove_field_formatter_dimension_validate()
  5. 7.6 brightcove.module \_brightcove_field_formatter_dimension_validate()
2 calls to _brightcove_field_formatter_dimension_validate()
brightcove_field_formatter_height_validate in ./brightcove.module
brightcove_field_formatter_width_validate in ./brightcove.module

File

./brightcove.module, line 697
Brightcove module is an integration layer between any modules using Brightcove API. It makes all necessary checks for the API and makes settings available to the user.

Code

function _brightcove_field_formatter_dimension_validate($value, $element, $error_msg) {
  if (!is_numeric($element['#value']) || (int) $element['#value'] < $value) {
    form_error($element, $error_msg);
  }
}