Needs work
Project:
Phone
Version:
6.x-2.8
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2008 at 19:46 UTC
Updated:
23 Aug 2012 at 20:38 UTC
Jump to comment: Most recent file
I took a different approach than http://drupal.org/node/205651 with this patch. I have included a CSS file to help format it correctly in the form, and I also added an install file to handle the update from one -> two fields. The update works with both single and multi-fields. This patch file applies cleanly against 5.x-2.11
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | phone.type_.after_.range_.diff | 8.56 KB | liveoutloud2day |
| #1 | phone.type_.diff | 8.48 KB | liveoutloud2day |
Comments
Comment #1
liveoutloud2day commentedWoops - how about the patch file?
Comment #2
liveoutloud2day commentedOh - the above patch applies cleanly with any of the patches I submitted, except in combination with this one - http://drupal.org/node/275837 - This version of the patch applies after you have applied the "range" patch.
Comment #3
thierry_gd commentedHi,
I think you forgot in phone.css to define the following elements :
phone-fields-end-wrapper
phone-field-end-wrapper
Comment #4
Freso commentedYou'll probably want to add some
t()calls.E.g.
$order_options = array('Mobile' => 'Mobile', 'Home' => 'Home', 'Office' => 'Office', 'Apt' => 'Apt', 'Dorm' => 'Dorm', 'Fax' => 'Fax');should probably beBoth for better compliace with Drupal's coding standards (the array formatting), but also so that you're able to translate the values of the array keys. You'll probably want to use
t()when presenting the value as well.Comment #5
kruser commentedIs there a patch for D6?
Comment #6
gnindl commentedI have done some work here:
http://drupal.org/node/501060
Comment #7
darrellduane commented+1
Comment #8
nedjoMarked #205651: Phone Type Selector - Home, Work, Mobile, Fax, Other as a duplicate. It has an alternate patch.