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/continent.inc, line 51

Code

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