Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Patch on the way
Comment | File | Size | Author |
---|---|---|---|
#12 | add_extension_support-1922130-12.patch | 1.97 KB | cweaver |
#5 | 1922130.patch | 1.93 KB | BTMash |
#1 | i1922130.patch | 1.93 KB | attiks |
Comments
Comment #1
attiks CreditAttribution: attiks commentedAttached patch adds a new option so you can output the phone number as a link
Comment #2
attiks CreditAttribution: attiks commentedStill applies, can anybody review?
Comment #3
TommyK CreditAttribution: TommyK commentedStill applies. Works great!
Comment #4
pfrenssenReviewed the patch, looking good except for a single copy/paste artifact:
This is not an "image" field :)
Comment #5
BTMash CreditAttribution: BTMash commentedChanged the comment to be a more generic 'field' ;)
Comment #6
BTMash CreditAttribution: BTMash commentedComment #7
pfrenssenGreat, thanks!
Comment #8
minorOffense CreditAttribution: minorOffense commentedThe link display doesn't take into account any extensions which have been applied to the number. You just get one long list of digits.
Based on the spec I think it should read:
See http://stackoverflow.com/questions/9838775/problems-using-extensions-in-... for reference.
Comment #9
minorOffense CreditAttribution: minorOffense commentedOr it could just be a 'p' character. Tough to say.
http://demosthenes.info/blog/536/Adding-Phone-Numbers-To-Web-Pages-With-...
Comment #10
cweaver CreditAttribution: cweaver commentedRevised preg_replace for including extensions in telephone links. Based on RFC 3966...
extension = ";ext=" 1*phonedigit"
Comment #11
cweaver CreditAttribution: cweaver commentedComment #12
cweaver CreditAttribution: cweaver commentedIgnore patch #11. Patch #12 incorporates 1922130.patch and extends it with phone number extension support.
Comment #13
cweaver CreditAttribution: cweaver commentedComment #14
kruser CreditAttribution: kruser commentedI would suggest a href="sms:// option as well if you wanted to send a Text.
Comment #15
akolahi CreditAttribution: akolahi commentedI don't think the two forward slashes are necessary. Simply 'tel:' should suffice, i believe.