The comments in your code say that any hook override for email_registration_name should return a string, but in fact it should return an array.

Comments

greggles’s picture

Status: Active » Postponed (maintainer needs more info)

I tried with the most recent 6.x-1.x and can't reproduce this issue.

I used the attached tr.module to test this and added some dsm's to email_registration.module


      // Other modules may implement hook_email_registration_name($edit, $account)
      // to generate a username (return a string to be used as the username, NULL
      // to have email_registration generate it)
      $names = module_invoke_all('email_registration_name', $edit, $account);
      dsm($names);
      // Remove any empty entries
      $names = array_filter($names);
      dsm($names);

In both cases the dsm is an array, so I think things are fine. I tried creating a new user and found that its name was changed to fooooseball as I expect from the module.

greggles’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Somehow the er.module didn't get uploaded.

Here it is: http://drupal.org/node/1389080#comment-6881128

I can't reproduce this so marking as closed. Please re-open if you are still having issues with it.