You are here

function i18n_menu_schema_alter in Internationalization 7

Implements hook_schema_alter().

File

i18n_menu/i18n_menu.install, line 36
Installation file for i18nmenu module.

Code

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