You are here

function i18nstrings_schema_alter in Internationalization 6

Implementation of hook_schema_alter().

File

i18nstrings/i18nstrings.install, line 102
Installation file for i18nstrings module.

Code

function i18nstrings_schema_alter(&$schema) {

  // Add index for textgroup and location to {locales_source}.
  $schema['locales_source']['indexes']['textgroup_location'] = array(
    array(
      'textgroup',
      30,
    ),
    'location',
  );

  // Add field for tracking whether translations need updating.
  $schema['locales_target']['fields']['i18n_status'] = array(
    'description' => 'A boolean indicating whether this translation needs to be updated.',
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  );
}