function _epsacrop_width_validate in EPSA Crop - Image Cropping 7.2
Validate width information.
@access private
Parameters
array $element:
array &$form_state:
Return value
void
1 string reference to '_epsacrop_width_validate'
- epsacrop_crop_image_form in ./
epsacrop.module - Function that provide the effect form settings for dialog crop.
File
- ./
epsacrop.module, line 725 - The main file of module
Code
function _epsacrop_width_validate($element, &$form_state) {
$value = $element['#value'];
if (empty($value)) {
if (empty($form_state['complete form']['data']['height']['#value'])) {
form_error($element, t('Width cannot be empty without a height value'));
}
}
}