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?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | phone.be_.inc_.txt | 5.67 KB | ikeigenwijs |
| f260863ea7297eda08cd9665d01d4f96.png | 14.52 KB | jrglasgow |
Comments
Comment #1
thierry_gd commentedI do not understand your question !
Comment #2
darrellduane commentedHe 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.
Comment #3
ikeigenwijs commentedsubscribe
we get now +32 9 2356877
We want +32 9 235 22 22 or
We want +32 (0)9 235 22 22
Comment #4
ikeigenwijs commentedFixed 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.