You are here

ttext.install in Internationalization 5

File

experimental/ttext.install
View source
<?php

function ttext_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("\nCREATE TABLE  {node_data_field_ttext} (\n  `name` varchar(32) NOT NULL default '',\n  `language` varchar(12) NOT NULL default '',\n  `vid` int(10) unsigned NOT NULL default '0',\n  `delta` int(10) unsigned NOT NULL default '0',\n  `nid` int(10) unsigned NOT NULL default '0',\n  `value` longtext NOT NULL,\n  PRIMARY KEY  (`vid`,`delta`,`name`,`language`)\n)  /*!40100 DEFAULT CHARACTER SET UTF8 */ \n");
      break;
    default:
      drupal_set_message(t('Database type not supported. This module, ttext, needs manual installation.'));
  }
}

Functions

Namesort descending Description
ttext_install