function video_general_admin_settings_validate in Video 7.2
File
- modules/
video_ui/ video.admin.inc, line 230 - Provides the administration settings for the Video Drupal module.
Code
function video_general_admin_settings_validate($form, &$form_state) {
$v =& $form_state['values'];
if (!empty($v['video_dimensions'])) {
$v['video_dimensions'] = trim(str_replace("\r", '', $v['video_dimensions']));
if (!video_utility::validateDimensionList($v['video_dimensions'])) {
form_error($form['video_dimensions'], t('The list of dimensions contains errors: only enter new lines and dimensions in the form widthxheight.'));
}
}
}