home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (solomon_islands_90_1.cif)

This example Drupal source code file (solomon_islands_90_1.cif) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

90, array, country_id, foreach, function, isabel, php, sb-is, uc_set_address_format, western, zone, zone_name, zones

The solomon_islands_90_1.cif Drupal example source code


function solomon_islands_install() {
  // Make the entry in the country table.
  // VALUES = Country ID, Country Name, 2-digit Code, 3-digit Code, File Version
      'country_id' => 90,
      'country_name' => 'Solomon Islands',
      'country_iso_code_2' => 'SB',
      'country_iso_code_3' => 'SLB',
      'version' => 1,

  // Make the entries in the zones table.
  $zones = array(
    array(90, 'SB-CT', 'Capital Territory (Honiara)'),
    array(90, 'SB-CE', 'Central'),
    array(90, 'SB-CH', 'Choiseul'),
    array(90, 'SB-GU', 'Guadalcanal'),
    array(90, 'SB-IS', 'Isabel'),
    array(90, 'SB-MK', 'Makira'),
    array(90, 'SB-ML', 'Malaita'),
    array(90, 'SB-RB', 'Rennell and Bellona'),
    array(90, 'SB-TE', 'Temotu'),
    array(90, 'SB-WE', 'Western'),

  $query = db_insert('uc_zones')->fields(array('zone_country_id', 'zone_code', 'zone_name'));
  foreach ($zones as $zone) {

  // Set address format
    "!first_name !last_name\r\n".
    "!city, !zone_name  !postal_code\r\n".

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal solomon_islands_90_1.cif source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.