function theme_countries_number in Countries 8
Same name and namespace in other branches
- 7.2 countries.module \theme_countries_number()
- 7 countries.module \theme_countries_number()
Themes ISO numeric-3 codes to a '0' padded string three characters long.
2 theme calls to theme_countries_number()
- countries_field_diff_view in ./
countries.diff.inc - Diff field callback for parsing country field comparative values.
- country_property in ./
countries.module - Helper function to help standardise the display of the core properties.
File
- ./
countries.module, line 916 - Defines the field and entity information for countries.
Code
function theme_countries_number($variables) {
if (isset($variables['country']) && !empty($variables['country']->numcode)) {
return sprintf("%03s", $variables['country']->numcode);
}
return '';
}