You are here

README.txt in Postal Code 8

Same filename and directory in other branches
  1. 7 README.txt
-- SUMMARY --

A very minimal D7 Postal Code field with validation for one country
(listed below) or a combination of countries.

Countries with validation:

    USA
    Canada
    UK
    Germany
    France
    Italy
    Australia
    Netherlands
    Spain
    Denmark
    Sweden
    Belgium
    India

To configure this module, navigate to admin/structure/postal_code.
Selecting countries in the 'Valid "Any" Countries" list will validate the
submitted postal code against regexes for those countries using
the "Any Country" widget type. If you want submissions validated,
make sure to check the "Validate" checkbox.

To configure content types to add this field type,
navigate to admin/structure/types. Select "manage fields"
beside the content type (eg: blog, page, article...) and follow
the normal procedure to add a new field, choosing "Postal Code"
under field type. Beneath "Widget" a number of selections will appear
for each country type, as well as an "Any" country which is configurable
(see above) to validate any included country's postal code.

Thanks to Pixel Envision and Geeks With Blogs for the list of
countries and Classic Graphics for the time to complete it.

Difference from postal_code_validation Module
My module - postal_code provides a feature to create a field of field type
postal code with different Field API widgets such as 'Postal Code:Any Format,
Postal Code:Canada Format etc'. And there is a
configuration form(admin/structure/postal_code) where we select countries to be
validated if selected widget type is 'Postal Code: Any Format'.
Whereas postal_code_validation Module provides a validation function which need
to be called on #validate attribute of a custom field when building a custom
module with country code and data as parameters.

-- REQUIREMENTS --

field_ui,field,options Module (in drupal core) must be enabled.


-- INSTALLATION --

See the installation guide here - http://drupal.org/node/70151

File

README.txt
View source
  1. -- SUMMARY --
  2. A very minimal D7 Postal Code field with validation for one country
  3. (listed below) or a combination of countries.
  4. Countries with validation:
  5. USA
  6. Canada
  7. UK
  8. Germany
  9. France
  10. Italy
  11. Australia
  12. Netherlands
  13. Spain
  14. Denmark
  15. Sweden
  16. Belgium
  17. India
  18. To configure this module, navigate to admin/structure/postal_code.
  19. Selecting countries in the 'Valid "Any" Countries" list will validate the
  20. submitted postal code against regexes for those countries using
  21. the "Any Country" widget type. If you want submissions validated,
  22. make sure to check the "Validate" checkbox.
  23. To configure content types to add this field type,
  24. navigate to admin/structure/types. Select "manage fields"
  25. beside the content type (eg: blog, page, article...) and follow
  26. the normal procedure to add a new field, choosing "Postal Code"
  27. under field type. Beneath "Widget" a number of selections will appear
  28. for each country type, as well as an "Any" country which is configurable
  29. (see above) to validate any included country's postal code.
  30. Thanks to Pixel Envision and Geeks With Blogs for the list of
  31. countries and Classic Graphics for the time to complete it.
  32. Difference from postal_code_validation Module
  33. My module - postal_code provides a feature to create a field of field type
  34. postal code with different Field API widgets such as 'Postal Code:Any Format,
  35. Postal Code:Canada Format etc'. And there is a
  36. configuration form(admin/structure/postal_code) where we select countries to be
  37. validated if selected widget type is 'Postal Code: Any Format'.
  38. Whereas postal_code_validation Module provides a validation function which need
  39. to be called on #validate attribute of a custom field when building a custom
  40. module with country code and data as parameters.
  41. -- REQUIREMENTS --
  42. field_ui,field,options Module (in drupal core) must be enabled.
  43. -- INSTALLATION --
  44. See the installation guide here - http://drupal.org/node/70151