--- phone.ca.inc.bak 2007-11-21 15:22:21.000000000 -0900 +++ phone.ca.inc 2007-11-21 15:31:34.000000000 -0900 @@ -58,6 +58,10 @@ function format_ca_phone_number($phonenu // construct ten-digit phone number $phonenumber = $matches[1] . '-' . $matches[2] . '-' . $matches[3]; + + if (!empty($matches[4])) { + $phonenumber .= ' x' . $matches[4]; + } if ($matches[1] != "1") { $phonenumber = "1" . " " . $phonenumber;