You are here

function i18n_taxonomy_schema_alter in Internationalization 7

Implements hook_schema_alter().

File

i18n_taxonomy/i18n_taxonomy.install, line 39
Installation file for i18n_taxonomy module.

Code

function i18n_taxonomy_schema_alter(&$schema) {
  $schema['taxonomy_vocabulary']['fields']['language'] = array(
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => LANGUAGE_NONE,
  );
  $schema['taxonomy_vocabulary']['fields']['i18n_mode'] = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
  $schema['taxonomy_term_data']['fields']['language'] = array(
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => LANGUAGE_NONE,
  );
  $schema['taxonomy_term_data']['fields']['i18n_tsid'] = array(
    'type' => 'int',
    'unsigned' => TRUE,
    'not null' => TRUE,
    'default' => 0,
  );
}