Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following functions are provided:
countryicons_get_iconsets($reset = FALSE)
Get an array with all iconsets and their details.countryicons_get_iconset($iconset)
Get an array with requested iconset and its details.countryicons_get_icon_path($code, $iconset = "shiny")
Get the path to an icon.countryicons_get_icon_url($code, $iconset = "shiny")
Get the url to an icon.
The following theme functions are provided:
theme_countryicons_icon($code, $iconset = 'shiny', $alt = '', $title = '', $attributes = NULL, $display_unknown = TRUE)
Theme a country icon. Returns a string containing the image tag.theme_countryicons_icon_sprite($code, $iconset = 'shiny')
Theme a country icon using a css spriting technique adapted from this list apart article. The css sprite and some css was generated using the Project Fondue CSS Sprite Generator. Returns a string containing the icon markup.