function focal_point_form_validate in Focal Point 7
Form validation function for the focal point form item.
1 string reference to 'focal_point_form_validate'
- _focal_point_form_append_focal_point_preview in ./
focal_point.module - Append the focal point preview field to file edit forms.
File
- ./
focal_point.module, line 258
Code
function focal_point_form_validate($form, &$form_state) {
$focal_point = isset($form_state['values']['focal_point']) ? $form_state['values']['focal_point'] : '';
if (!focal_point_validate($focal_point)) {
form_set_error('focal_point', t('Focal points should be in the format ##,## without spaces where the numbers are between 1 and 100.'));
}
}