function realname_settings_form_validate in Real Name 7
Form validation handler for realname_settings_form().
See also
realname_settings_form_submit()
File
- ./
realname.admin.inc, line 63 - Administrative page callbacks for the realname module.
Code
function realname_settings_form_validate($form, &$form_state) {
if (strpos($form_state['values']['realname_pattern'], '[user:name]') !== FALSE) {
form_set_error('realname_pattern', t('The %token token cannot be used as it will cause recursion.', array(
'%token' => '[user:name]',
)));
}
}