Commit d90ca1f7 authored by Steve Gerbino's avatar Steve Gerbino

Quickfix to allow administrators to override the Realname registration

module with their own usernames.
parent c155eafb
......@@ -71,7 +71,7 @@ function realname_registration_help($path, $arg) {
* Implementation of hook_form_alter().
*/
function realname_registration_form_alter(&$form, $form_state, $form_id) {
if (!($form_id == 'user_register') || ($form['#action'] == '/admin/user/user/create')) {
if (!($form_id == 'user_register') || ($form['#action'] == base_path() . 'admin/user/user/create')) {
return;
}
......
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