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.
Validation strips off the initial "0" in a phone number,
This patch switches off the stripping of "0" if number starts with 0 and provides a global setting in field "edit".
Comment | File | Size | Author |
---|---|---|---|
#1 | phone-force-keep-initial-zero-setting-2286839-1.patch | 3.16 KB | ravyg |
Comments
Comment #1
ravyg CreditAttribution: ravyg commentedAdding patch to add:
settings for "Force keep starting "0s" in phone numbers"
This adds a condition and flexibility for administrator to stop stripping initial '0' is he wants 0 to be displayed before his phone number
Eg:
if number to be show is 04123456 (number entered in phone field).
NOTE: this is a quick patch will check for other implemtations and add changes.
Comment #2
ravyg CreditAttribution: ravyg commented