Download & Extend

formatting output for belgium phone.be.inc

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?

AttachmentSize
f260863ea7297eda08cd9665d01d4f96.png14.52 KB

Comments

#1

I do not understand your question !

#2

Category:support request» feature request

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

Title:formatting output» formatting output for belgium phone.be.inc
Status:active» needs review

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.

AttachmentSize
phone.be_.inc_.txt 5.67 KB
nobody click here