Commit a4236bbc authored by Steve Gerbino's avatar Steve Gerbino

Fixed a typo in realname_registration_validate function.

parent 7c5b619f
......@@ -96,7 +96,7 @@ function realname_registration_user_presave(&$edit, $account, $category) {
function realname_registration_validate($form, &$form_state) {
// A first name must be letters only.
if (!preg_match("/^[A-Za-z]+$/", $form_state['values']['firstname'])) {
form_set_error('firstname', t('Last name must only contain letters'));
form_set_error('firstname', t('First name must only contain letters'));
}
// A last name must be letters only.
if (!preg_match("/^[A-Za-z]+$/", $form_state['values']['lastname'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment