You are here

function flags_country_field_widget_info_alter in Flags 8

File

flags_country/flags_country.module, line 3

Code

function flags_country_field_widget_info_alter(array &$info) {
  if (\Drupal::moduleHandler()
    ->moduleExists('select_icons')) {
    $info['country_select_menu']['field_types'][] = 'country';
    $info['country_flag_autocomplete']['field_types'][] = 'country';
  }
}