function custom_formatters_settings_form_validate in Custom Formatters 6
Same name and namespace in other branches
- 7.2 includes/custom_formatters.admin.inc \custom_formatters_settings_form_validate()
Settings form callback; Validate.
File
- ./
custom_formatters.admin.inc, line 1107 - Contains administration functions for the Custom Formatters module.
Code
function custom_formatters_settings_form_validate($form, $form_state) {
if ($form_state['values']['settings']['label_prefix'] && empty($form_state['values']['settings']['label_prefix_value'])) {
form_set_error('settings][label_prefix_value', t('A label prefix must be defined if you wish to use the prefix.'));
}
}