function geoip_language_schema in GeoIP API 6
Same name and namespace in other branches
- 7 geoip_language/geoip_language.install \geoip_language_schema()
Implementation of hook_schema().
File
- geoip_language/
geoip_language.install, line 11 - file_description
Code
function geoip_language_schema() {
$schema['geoip_language'] = array(
'description' => 'Table to store geoip country to language mappings.',
'fields' => array(
'country' => array(
'type' => 'char',
'length' => 2,
'not null' => TRUE,
'description' => 'Country code, as defined in http://www.maxmind.com/app/iso3166.',
),
'language' => array(
'type' => 'varchar',
'length' => 12,
'not null' => TRUE,
'default' => '',
'description' => 'Language code, as defined in the languages table.',
),
),
'primary key' => array(
'country',
),
);
return $schema;
}