function theme_countries_number in Countries 7.2
Same name and namespace in other branches
- 8 countries.module \theme_countries_number()
- 7 countries.module \theme_countries_number()
Themes ISO numeric-3 codes to a '0' padded string three characters long.
3 theme calls to theme_countries_number()
- countries_admin_import_form in ./
countries.admin.inc - Menu callback to update the database from the CSV file.
- 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 914 - 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 '';
}