Hi there, I've installed the phone cck module and when had just created the first node I found somewhat was not formatting it correctly.
So, I found some errors in the matches.
When possible review or try to fix it up, please.
Revisit this part of the code in phone-br.inc.php file
Testing against:
format_br_phone_number( '+55 11 2222-3333', true );
With the actual matches:
$formatedphone .= '(' . $matches[2] . ')'; // returns: (55)
$formatedphone .= ' ' . $matches[3] . '-'; // returns: 11-
$formatedphone .= '' . $matches[4]; // returns:
And try this, instead:
$formatedphone .= '(' . $matches[3] . ')'; // returns : (11)
$formatedphone .= ' ' . $matches[6] . '-'; // returns : 2222
$formatedphone .= '' . $matches[7]; // returns : 3333
Thanks in Advance!
Comments
Comment #1
thierry_gd commentedTaken into account in 6.2.16 version