6.x-2.x
Last updated on
30 April 2025
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.
Help improve this page
Page status: Not set
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion