You are here

function brightcove_field_formatter_width_validate in Brightcove Video Connect 7.4

Same name and namespace in other branches
  1. 7.7 brightcove.module \brightcove_field_formatter_width_validate()
  2. 7.2 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
  3. 7.3 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
  4. 7.5 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
  5. 7.6 brightcove.module \brightcove_field_formatter_width_validate()
1 string reference to 'brightcove_field_formatter_width_validate'
brightcove_field_field_formatter_settings_form in brightcove_field/brightcove_field.module
Impelements hook_field_formatter_settings_form().

File

brightcove_field/brightcove_field.module, line 566
Brightcove field module provides a Content Construction Kit module to developers, allowing them to browse videos in their Brightcove Studio and upload them.

Code

function brightcove_field_formatter_width_validate($element) {
  $minwidth = BRIGHTCOVE_MINIMUM_VIDEO_WIDTH;
  $errormsg = t('The video width must be a number, greater than %num', array(
    '%num' => $minwidth,
  ));
  _brightcove_field_formatter_dimension_validate($minwidth, $element, $errormsg);
}