You are here

function countries_api_validate_format in Country codes API 5

Same name and namespace in other branches
  1. 6 countries_api.module \countries_api_validate_format()

Function to validate format argument

Parameters

$format: Input format to validate

Return value

boolean Return if it is a valid format

2 calls to countries_api_validate_format()
countries_api_get_array in ./countries_api.module
Function to return an associative array of countries with key/values based on args Can be used to get results for FAPI form options.
_countries_api_iso_get_country in ./countries_api.module
Function to return a country by code and name.

File

./countries_api.module, line 256

Code

function countries_api_validate_format($format) {
  return in_array($format, countries_api_get_formats());
}