You are here

function mobile_number_views_country_options in Mobile Number 7

Same name and namespace in other branches
  1. 8 mobile_number.module \mobile_number_views_country_options()
  2. 2.0.x mobile_number.module \mobile_number_views_country_options()

Helper function for get all supported countries for views.

1 string reference to 'mobile_number_views_country_options'
mobile_number_views_data_alter in ./mobile_number.module
Implements hook_views_data_alter().

File

./mobile_number.module, line 657
mobile_number.module

Code

function mobile_number_views_country_options($allowed_countries = array()) {
  return MobileNumber::getCountryOptions($allowed_countries, TRUE);
}