function i18nprofile_install in Internationalization 5.3
Same name and namespace in other branches
- 5 i18nprofile/i18nprofile.install \i18nprofile_install()
- 5.2 i18nprofile/i18nprofile.install \i18nprofile_install()
Set language field in its own table Do not drop node.language now, just in case TO-DO: Drop old tables, fields
File
- i18nprofile/
i18nprofile.install, line 8
Code
function i18nprofile_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {i18n_profile_fields} (\n `fid` int(10) NOT NULL,\n `language` varchar(10) NOT NULL default '',\n `title` varchar(255) default '',\n `explanation` text,\n `page` varchar(255) default '',\n `options` text,\n PRIMARY KEY (`fid`, `language`)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
case 'pgsql':
drupal_set_message("PGSQL automatic install is not supported for i18nprofile module");
break;
}
}