Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When you use the UK/British phone code, when drupal formats the phone number, it returns the array twice.
This means your HTML will start with array(+44 00...) etc.
To fix this bug, edit the last lines of phone_uk_inc to read....
return $phonenumber;
}
}
The closing if / else brace was in the wrong place.
Comments
Comment #1
thierry_gd CreditAttribution: thierry_gd commentedTaken into account in 5.2.7 version
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
Ulti CreditAttribution: Ulti commentedHi, This isn't an issue at all, the first if just returns the function OR the else is evaluated. It makes no difference if the else is even there or not, as the code has either returned the function or gone on to evaluate the rest of the function block.
However, there is still an issue with a var_export still being present in the most recently downloaded version of this module (5.x-2.9). Which I reported previously and submitted a patch back in December 2007!!! http://drupal.org/node/194731#comment-654960 Could you please make the changes to the current release, at present anyone using a UK phone number is going to be scratching their head wondering what all the weird debug output is about.
Line #125 phone.uk.inc
Comment #4
Ulti CreditAttribution: Ulti commentedComment #5
thierry_gd CreditAttribution: thierry_gd commentedFixed in 5.2.11 version
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.