function i18nstrings_install in Internationalization 5.2
Same name and namespace in other branches
- 5.3 i18nstrings/i18nstrings.install \i18nstrings_install()
- 5 experimental/i18nstrings.install \i18nstrings_install()
- 6 i18nstrings/i18nstrings.install \i18nstrings_install()
File
- experimental/
i18nstrings.install, line 3
Code
function i18nstrings_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("\nCREATE TABLE {i18n_locale_strings} (\n `strid` varchar(100) NOT NULL,\n `locale` varchar(12) NOT NULL,\n `text` text NOT NULL,\n PRIMARY KEY (`strid`,`locale`)\n) /*!40100 DEFAULT CHARACTER SET UTF8 */\n");
break;
default:
drupal_set_message(t('Database type not supported. This module, i18nstrings, needs manual installation.'));
}
}