function webform_webform_options_country_names_alter in Webform 8.5
Same name and namespace in other branches
- 6.x includes/webform.options.inc \webform_webform_options_country_names_alter()
Implements hook_webform_options_WEBFORM_OPTIONS_ID_alter() for country names options.
File
- includes/
webform.options.inc, line 56 - Options alter hooks.
Code
function webform_webform_options_country_names_alter(array &$options, array $element = []) {
if (empty($options)) {
$countries = CountryManager::getStandardList();
$options = array_combine($countries, $countries);
}
}