You are here

function _phone_update_cck_phone_country in Phone 7.2

Helper function for migrate/update functions: convert cck_phone-6.x and cck_phone-7.x-1.x country codes to new valus.

2 calls to _phone_update_cck_phone_country()
phone_content_migrate_data_record_alter in ./phone.content_migrate.inc
Implements hook_content_migrate_field_alter().
_phone_update_cck_phone_instance_settings in ./phone.module
Helper function for migrate/update functions: convert cck_phone-6.x and cck_phone-7.x-1.x instance settings to new values.

File

./phone.module, line 1384
The phone module lets administrators use a phone number field type.

Code

function _phone_update_cck_phone_country($orig_country) {
  $country = drupal_strtoupper($orig_country);

  // @todo: Are there are country code changes with latest metadata?
  if ($country == 'TP') {

    // Replace TP with TL (Timor-Leste)
    $country = 'TL';
  }
  return $country;
}