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

Drupal example source code file (indonesia_360_1.cif)

This example Drupal source code file (indonesia_360_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

array, barat, jawa, kalimantan, maluku, riau, selatan, sulawesi, sumatera, tengah, tenggara, timur, utara

The indonesia_360_1.cif Drupal example source code

// $Id: indonesia_360_1.cif,v 2010/04/14 05:18:19 tr Exp $

function indonesia_install() {
  db_query("INSERT INTO {uc_countries} (country_id, country_name, country_iso_code_2, country_iso_code_3, version) VALUES (360, 'Indonesia', 'ID', 'IDN', 1)");

  // Make the entries in the zones table.
  $zones = array(
    array(360, 'NAD', 'Nanggroe Aceh Darussalam'),
    array(360, 'Sumut', 'Sumatera Utara'),
    array(360, 'Sumbar', 'Sumatera Barat'),
    array(360, 'Riau', 'Riau'),
    array(360, 'Jambi', 'Jambi'),
    array(360, 'Sumsel', 'Sumatera Selatan'),
    array(360, 'Bengkulu', 'Bengkulu'),
    array(360, 'Lampung', 'Lampung'),
    array(360, 'Babel', 'Kepulauan Bangka Belitung'),
    array(360, 'Kepri', 'Kepulauan Riau'),
    array(360, 'DKI', 'DKI Jakarta'),
    array(360, 'Jabar', 'Jawa Barat'),
    array(360, 'Jateng', 'Jawa Tengah'),
    array(360, 'DIY', 'Daista Yogyakarta'),
    array(360, 'Jatim', 'Jawa Timur'),
    array(360, 'Banten', 'Banten'),
    array(360, 'Bali', 'Bali'),
    array(360, 'NTB', 'Nusa Tenggara Barat'),
    array(360, 'NTT', 'Nusa Tenggara Timur'),
    array(360, 'Kalbar', 'Kalimantan Barat'),
    array(360, 'Kalteng', 'Kalimantan Tengah'),
    array(360, 'Kalsel', 'Kalimantan Selatan'),
    array(360, 'Kaltim', 'Kalimantan Timur'),
    array(360, 'Sulut', 'Sulawesi Utara'),
    array(360, 'Sulteng', 'Sulawesi Tengah'),
    array(360, 'Sulsel', 'Sulawesi Selatan'),
    array(360, 'Sultra', 'Sulawesi Tenggara'),
    array(360, 'Gorontalo', 'Gorontalo'),
    array(360, 'Sulbar', 'Sulawesi Barat'),
    array(360, 'Maluku', 'Maluku'),
    array(360, 'Malut', 'Maluku Utara'),
    array(360, 'Papua', 'Papua'),
    array(360, 'Irjabar', 'Irian Jaya Barat'),

  foreach ($zones as $zone) {
    db_query("INSERT INTO {uc_zones} (zone_country_id, zone_code, zone_name) VALUES (%d, '%s', '%s')", $zone);

               "!company\n!first_name !last_name\n!street1\n!street2\n!city !postal_code \n!country_name_if");

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal indonesia_360_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.