When creating/editing the field you are given the choice to tell the module how to format the output, at least this is what I think you are telling the module.

How do you get the phone module to output the field in the method you chose when setting up the field?

Comments

thierry_gd’s picture

I do not understand your question !

darrellduane’s picture

Category: support » feature

He is asking for a way to specify how phone numbers should be displayed when viewing a node that contains them.

E-mail address Fields have a few options to choose from: Default email link, or Email Contact Link. Likewise, Integers have 4 different formats. It would be nice to be able to select from a few different formats for displaying a phone number.

Should numbers appear like this: (123) 456-7890
or Like this: 123.456.7890

I imagine each country has one or more standard formats.

I"m going to look into what it would take to make this happen.

ikeigenwijs’s picture

subscribe
we get now +32 9 2356877
We want +32 9 235 22 22 or
We want +32 (0)9 235 22 22

ikeigenwijs’s picture

Title: formatting output » formatting output for belgium phone.be.inc
Status: Active » Needs review
Issue tags: +be.inc format, +belgium
StatusFileSize
new5.67 KB

Fixed it for belgium be.inc see attachment, can it be added?

function be_formatter_default($element) {
fixed phone
// output as +32 AA BB BB BB, +32 A BBB BB BB
Cell phone
as +32 AAA BB BB BB

function be_formatter_local($element) {
Is less tested but should be ok.