macao_446_1.cif 727 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Implements hook_install() using the name of the country as the base of
  4. * the function name.
  5. */
  6. function macao_install() {
  7. // Make the entry in the country table.
  8. // VALUES = Country ID, Country Name, 2-digit Code, 3-digit Code, File Version
  9. db_insert('uc_countries')
  10. ->fields(array(
  11. 'country_id' => 446,
  12. 'country_name' => 'Macau',
  13. 'country_iso_code_2' => 'MO',
  14. 'country_iso_code_3' => 'MAC',
  15. 'version' => 1,
  16. ))
  17. ->execute();
  18. // No zones
  19. // Set address format
  20. uc_set_address_format(
  21. 446,
  22. "!company\r\n".
  23. "!first_name !last_name\r\n".
  24. "!street1\r\n".
  25. "!street2\r\n".
  26. "!city !zone_code !postal_code\r\n".
  27. "!country_name_if"
  28. );
  29. }