function name_admin_settings_form_validate in Name Field 7
1 string reference to 'name_admin_settings_form_validate'
- name_admin_settings_form in ./
name.admin.inc - Form builder function for module settings.
File
- ./
name.admin.inc, line 172 - General administration functions.
Code
function name_admin_settings_form_validate($form, &$form_state) {
$default_format = trim($form_state['values']['name_settings']['default_format']);
if (empty($default_format) && !strlen($default_format)) {
form_set_error('name_settings][default_format', t('%title field is required.', array(
'%title' => $form['name_settings']['default_format']['#title'],
)));
}
}