function brightcove_field_formatter_width_validate in Brightcove Video Connect 7.7
Same name and namespace in other branches
- 7.2 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
- 7.3 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
- 7.4 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
- 7.5 brightcove_field/brightcove_field.module \brightcove_field_formatter_width_validate()
- 7.6 brightcove.module \brightcove_field_formatter_width_validate()
1 string reference to 'brightcove_field_formatter_width_validate'
File
- ./
brightcove.module, line 703 - 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_width_validate($element) {
$minwidth = BRIGHTCOVE_MINIMUM_VIDEO_WIDTH;
$errormsg = t('The video width must be a number, greater than %num', [
'%num' => $minwidth,
]);
_brightcove_field_formatter_dimension_validate($minwidth, $element, $errormsg);
}