You are here

function geoip_token_info in GeoIP API 7.2

Implements hook_token_info().

File

./geoip.tokens.inc, line 10
Token callbacks for the geoip module.

Code

function geoip_token_info() {
  $tokens['geoip-continent-code'] = array(
    'name' => t('Continent code'),
    'description' => t('The continent code as detected by the users ip.'),
  );
  $tokens['geoip-continent-name'] = array(
    'name' => t('Continent name'),
    'description' => t('The continent name as detected by the users ip.'),
  );
  $tokens['geoip-region-code'] = array(
    'name' => t('Region code'),
    'description' => t('The region code as detected by the users ip.'),
  );
  $tokens['geoip-region-name'] = array(
    'name' => t('Region name'),
    'description' => t('The region name as detected by the users ip.'),
  );
  $tokens['geoip-country-code'] = array(
    'name' => t('ISO-3166 country code'),
    'description' => t('The country code as detected by the users ip.'),
  );
  $tokens['geoip-country-name'] = array(
    'name' => t('Country name'),
    'description' => t('The country name as detected by the users ip.'),
  );
  return array(
    'tokens' => array(
      'user' => $tokens,
    ),
  );
}