1 system.api.php hook_timezone_countries_alter(&$timezone_countries)

Alter the default timezone country list.

Parameters

$timezone_countries: The associative array of ISO 3166-1 country codes keyed by timezone.

See also

timezone_country_get_list()

standard_timezone_country_list()

Related topics

File

core/modules/system/system.api.php, line 4082
Hooks provided by Backdrop core and the System module.

Code

function hook_timezone_countries_alter(&$timezone_countries) {
  // Elbonia is now independent, so add its timezone to the list.
  $timezone_countries['Europe/Elbonia'] = 'EB';
}