Posted by jrglasgow on May 18, 2010 at 5:03am
4 followers
| Project: | Phone |
| Version: | 6.x-2.15 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
| Issue tags: | be.inc format, belgium |
Issue Summary
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?
| Attachment | Size |
|---|---|
| f260863ea7297eda08cd9665d01d4f96.png | 14.52 KB |
Comments
#1
I do not understand your question !
#2
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.
#3
subscribe
we get now +32 9 2356877
We want +32 9 235 22 22 or
We want +32 (0)9 235 22 22
#4
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.