function _adsense_search_options_encoding in Google AdSense integration 6
Same name and namespace in other branches
- 5.3 includes/adsense.search_options.inc \_adsense_search_options_encoding()
- 7 includes/adsense.search_options.inc \_adsense_search_options_encoding()
Supply the available encodings for the search configuration forms.
Return value
array array of encoding options with the key used by Google and its description
2 calls to _adsense_search_options_encoding()
- adsense_cse_settings in cse/
adsense_cse.admin.inc - Menu callback for the adsense_cse module settings form.
- adsense_search_settings in old/
search/ adsense_search.admin.inc - Menu callback for the adsense_search module settings form.
File
- includes/
adsense.search_options.inc, line 14 - Helper functions used by AdSense for Search configuration forms.
Code
function _adsense_search_options_encoding() {
return array(
'UTF-8' => t('Unicode (UTF-8)'),
'ISO-8859-1' => t('West European Latin-1 (ISO-8859-1)'),
'ISO-8859-15' => t('West European Latin-9 (ISO-8859-15)'),
'windows-1252' => t('Western (Windows-1252)'),
'ISO-8859-10' => t('Nordic Latin-6 (ISO-8859-10)'),
'ISO-8859-7' => t('Greek (ISO-8859-7)'),
'Shift_JIS' => t('Japanese (Shift_JIS)'),
'EUC-JP' => t('Japanese (EUC-JP)'),
'ISO-2022-JP' => t('Japanese (ISO-2022-JP)'),
'GB2312' => t('Chinese Simplified (GB2312)'),
'GB18030' => t('Chinese Simplified (GB18030)'),
'big5' => t('Chinese Traditional (Big5)'),
'EUC-KR' => t('Korean (EUC-KR)'),
'windows-874' => t('Thai (Windows-874)'),
'windows-1258' => t('Vietnamese (Windows-1258)'),
'ISO-8859-2' => t('Central European Latin-2 (ISO-8859-2)'),
'windows-1250' => t('Central European (Windows-1250)'),
'cp852' => t('Central European (CP852)'),
'ISO-8859-9' => t('Turkish Latin-5 (ISO-8859-9)'),
'windows-1254' => t('Turkish (Windows-1254)'),
'ISO-8859-3' => t('South European Latin-3 (ISO-8859-3)'),
'ISO-8859-8-I' => t('Hebrew (ISO-8859-8-I)'),
'windows-1255' => t('Hebrew (Windows-1255)'),
'windows-1256' => t('Arabic (Windows-1256)'),
'ISO-8859-5' => t('Cyrillic (ISO-8859-5)'),
'KOI8-R' => t('Cyrillic (KOI8-R)'),
'windows-1251' => t('Cyrillic (Windows-1251)'),
'cp-866' => t('Cyrillic/Russian (CP-866)'),
);
}