The current form_alter tries to find the right part of the form by checking if the profile module is installed and the $account['names'] is an array. This works fine unless you have a custom module that adds data to the profile page (like I do) and you don't have profile module enabled).

Attached patch just says "hey, if it's an array, modify it, if not, try the other spot." and should be more reliable.

CommentFileSizeAuthor
#1 485768_more_reliable_array.patch1.33 KBgreggles

Comments

greggles’s picture

Status: Active » Needs review
StatusFileSize
new1.33 KB

And the patch.

greggles’s picture

Status: Needs review » Closed (duplicate)
greggles’s picture

Title: more robust form modification » e_notice compliance for email_registration
Status: Closed (duplicate) » Needs review

My patch fixes an E_NOTICE issue raised by that patch.

greggles’s picture

Assigned: Unassigned » greggles
Status: Needs review » Fixed

Accidentally committed in http://drupal.org/cvs?commit=223240

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.