You are here

function phone_countries_alter in Phone 7.2

Implements hook_countries_alter().

File

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

Code

function phone_countries_alter(&$countries) {

  // Add in some countries that libphonenumber has, that core does not.
  $countries['AC'] = t('Ascension Island');
  if (!module_exists('countries')) {
    $countries['BQ'] = t('Bonaire, Sint Eustatius and Saba');
    $countries['SS'] = t('South Sudan');
    $countries['SX'] = t('Sint Maarten');
    asort($countries, SORT_LOCALE_STRING);
  }
}