function format_pl_phone_number in Phone 6
Same name and namespace in other branches
- 7 include/phone.pl.inc \format_pl_phone_number()
Formatting for Polish Phone Numbers.
Parameters
string $phonenumber:
Return value
string Returns a string containting the phone number with some formatting.
File
- ./
phone.pl.inc, line 36 - CCK Field for Poland phone numbers.
Code
function format_pl_phone_number($phonenumber, $field) {
//$phonenumber = trim($phonenumber);
// do some formatting on the phone number
/* ==> to be done ==> add the country code
if ($field['phone_country_code']) {
if ($matches[1] != "+39") {
$phonenumber = "+39" . " " . $phonenumber;
}
}
*/
return $phonenumber;
}