I am getting the following PHP Warning when using addressfield_phone:
Warning: Invalid argument supplied for foreach() in element_children()

I believe this is because the pre_render function is missing a return statement.

Comments

sawtell’s picture

The following patch adds in the return statement.
I have also added the mobile_number array along with populating the #children attribute due to the behaviour described in http://drupal.org/node/1883330

I'm not too sure what the purpose of the #tag attribute is, #prefix and #suffix may be needed to format the output.

sawtell’s picture

Status: Active » Needs review
sw3b’s picture

Status: Needs review » Reviewed & tested by the community

Yeah it solve the problem !

Christopher Riley’s picture

Took care of the issues I was having as well. Would like to see this get committed.

jcisio’s picture

Status: Reviewed & tested by the community » Fixed

Fixed with a minimal patch http://drupalcode.org/project/addressfield_phone.git/commit/2931479. Thanks!

I didn't commit the mobile number because while I think it is necessary, it needs a separate issue.

Status: Fixed » Closed (fixed)

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