function geoip_ctools_plugin_region_ctools_access_summary in GeoIP API 7.2
Same name in this branch
- 7.2 plugins/access/region.inc \geoip_ctools_plugin_region_ctools_access_summary()
- 7.2 plugins/access/continent.inc \geoip_ctools_plugin_region_ctools_access_summary()
- 7.2 plugins/access/country.inc \geoip_ctools_plugin_region_ctools_access_summary()
Provide a summary description based upon provided user agent.
3 string references to 'geoip_ctools_plugin_region_ctools_access_summary'
- continent.inc in plugins/
access/ continent.inc - country.inc in plugins/
access/ country.inc - region.inc in plugins/
access/ region.inc
File
- plugins/
access/ country.inc, line 51
Code
function geoip_ctools_plugin_region_ctools_access_summary($conf, $context) {
$countries = country_get_list();
$countries = array_intersect_key($countries, $conf['countries']);
return t('User IP belongs to country: @countries', array(
'@countries' => implode(' ' . t('or') . ' ', $countries),
));
}