Closed (fixed)
Project:
Zipcode (CCK)
Version:
6.x-2.4
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2009 at 04:32 UTC
Updated:
28 Feb 2012 at 16:56 UTC
is there a way to force just us codes?
Comments
Comment #1
Bambusstock commentedI think you can edit the module. Remove all zipcode.*.inc files, except the zipcode.us.inc file. After that you have to edit the zipcode.module file and remove there all options except the us-options.
Comment #2
thierry_gd commentedThe way to do that is what explained Bambusstock but there are no need to do so : just select the country you need in the content types to create the page template you need
Comment #3
sam mooreI've hacked both Zipcode and Phone modules to eliminate all but the US and Canada, as Bambusstock suggest.
All you need to do to delete or comment out the lines in the array definition around line 31 in both modules.
Thierry, my main reason for doing this is so that I don't have to scroll past 30 phone options and 30 postal code options that I'll never use, every time I go to create a CCK field type.
Altogether, two very useful modules - and thanks very much for making them!
Comment #5
JunieMoon commentedIt would be really nice to have a cleaner way to turn off the countries that aren't needed.