function countryicons_get_iconset in Country Icons 7
Same name and namespace in other branches
- 6.2 countryicons.module \countryicons_get_iconset()
- 6 countryicons.module \countryicons_get_iconset()
- 7.2 countryicons.module \countryicons_get_iconset()
Get an iconsets details.
Parameters
$iconset: The iconset name.
Return value
array with requested iconset if it exists, else NULL.
2 calls to countryicons_get_iconset()
- countryicons_get_icon_path in ./
countryicons.module - Get the path to an icon.
- theme_countryicons_icon in ./
countryicons.module - Theme a country icon.
File
- ./
countryicons.module, line 109 - A collection of country icons, and an API for retrieving them.
Code
function countryicons_get_iconset($iconset) {
$all_iconsets = countryicons_get_iconsets();
if (isset($all_iconsets[$iconset])) {
return $all_iconsets[$iconset];
}
else {
drupal_set_message(t('Iconset %iconset does not exist!', array(
'%iconset' => $iconset,
)), 'warning');
return NULL;
}
}