You are here

function geoip_ctools_plugin_region_ctools_access_summary in GeoIP API 7.2

Same name in this branch
  1. 7.2 plugins/access/region.inc \geoip_ctools_plugin_region_ctools_access_summary()
  2. 7.2 plugins/access/continent.inc \geoip_ctools_plugin_region_ctools_access_summary()
  3. 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/region.inc, line 57

Code

function geoip_ctools_plugin_region_ctools_access_summary($conf, $context) {
  $regions = geoip_regions_list();
  $regions = array_intersect_key($regions, $conf['regions']);
  return t('User IP belongs to region: @regions', array(
    '@regions' => implode(' ' . t('or') . ' ', $regions),
  ));
}