*
* Generated from xml/schema/CRM/Core/Country.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:e01f7b6fdc1c22bcf6fbc125ea2d894a)
+ * (GenCodeChecksum:467cb92fabf3d936d330591eec94504d)
*/
/**
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Country ID'),
- 'description' => 'Country Id',
+ 'description' => ts('Country Id'),
'required' => TRUE,
'table_name' => 'civicrm_country',
'entity' => 'Country',
'name' => 'name',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Country'),
- 'description' => 'Country Name',
+ 'description' => ts('Country Name'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'name' => 'iso_code',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Country ISO Code'),
- 'description' => 'ISO Code',
+ 'description' => ts('ISO Code'),
'maxlength' => 2,
'size' => CRM_Utils_Type::TWO,
'table_name' => 'civicrm_country',
'name' => 'country_code',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Country Phone Prefix'),
- 'description' => 'National prefix to be used when dialing TO this country.',
+ 'description' => ts('National prefix to be used when dialing TO this country.'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
'table_name' => 'civicrm_country',
'name' => 'address_format_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Address Format'),
- 'description' => 'Foreign key to civicrm_address_format.id.',
+ 'description' => ts('Foreign key to civicrm_address_format.id.'),
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'name' => 'idd_prefix',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Outgoing Phone Prefix'),
- 'description' => 'International direct dialing prefix from within the country TO another country',
+ 'description' => ts('International direct dialing prefix from within the country TO another country'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
'table_name' => 'civicrm_country',
'name' => 'ndd_prefix',
'type' => CRM_Utils_Type::T_STRING,
'title' => ts('Area Code'),
- 'description' => 'Access prefix to call within a country to a different area',
+ 'description' => ts('Access prefix to call within a country to a different area'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
'table_name' => 'civicrm_country',
'name' => 'region_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Region'),
- 'description' => 'Foreign key to civicrm_worldregion.id.',
+ 'description' => ts('Foreign key to civicrm_worldregion.id.'),
'required' => TRUE,
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'localizable' => 0,
+ 'localize_context' => 'country',
'FKClassName' => 'CRM_Core_DAO_Worldregion',
+ 'pseudoconstant' => [
+ 'table' => 'civicrm_worldregion',
+ 'keyColumn' => 'id',
+ 'labelColumn' => 'name',
+ ]
],
'is_province_abbreviated' => [
'name' => 'is_province_abbreviated',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Abbreviate Province?'),
- 'description' => 'Should state/province be displayed as abbreviation for contacts from this country?',
+ 'description' => ts('Should state/province be displayed as abbreviation for contacts from this country?'),
+ 'default' => '0',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',