email registration module not hiding user name field

der - July 1, 2008 - 15:44
Project:Email Registration
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed
Description

In your form alter function you check to see if the profile module is installed before you determine which form field to hide (for the user name). This is not a valid check as the module may be installed but not being used. It would be better to check for the existance of the form "account" array like this:

if (isset($form['account']))

#1

Chris Herberte - October 2, 2008 - 08:54
Status:active» fixed
 
 

Drupal is a registered trademark of Dries Buytaert.