Hi, i have been trying to use your module together with the inline registration module. Your module works and so does inline registration, but not when both is active. I believe its because inline reg. hijacks the user login validation/submit functions via hook_form_alter.

What happens when both modules are active is that the user is still presented with a textfield for user name. Then after submit, auto_username takes over which is what should happen. However, i dont think the user should be presented with a username field to begin with.
(i need to use inline registration because i want users to create an account while creating a node as well)

A simple hack is to insert these 2 lines of code into the inline registration module:

 $form['register']['form']['name']['#type'] = 'hidden';
 $form['register']['form']['name']['#default_value'] = 'not_applicable';

That just makes the username field hidden and sets a default value. When the user submit, your module takes over and works fine for what I want it to do.

I tried created my own custom module and tried using hook_form_alter to hack into the user_login form provided by inline registration, but I am not sure how to do this. the hook_form_alter is being called first by my module and then by inline registration. So i cannot get the form_id. I may be wrong about this though.

The simple hack above works but I would rather not hack the inline registration module and to put my custom code into a custom module. Do you have any idea how to do this?

Comments

alexkb’s picture

Status: Active » Closed (won't fix)

Thanks for the report and sorry this wasn't fixed at the time it was relevant. I'm new to this project, but cleaning up the issue queue, so closing this issue given its on a very old branch. Thanks.