You are here

function lingotek_update_7500 in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.install \lingotek_update_7500()
  2. 7.5 lingotek.install \lingotek_update_7500()

Adds support for translating additional entity types

File

./lingotek.install, line 676

Code

function lingotek_update_7500(&$sandbox) {
  lingotek_extend_metadata_tables();
  db_query("INSERT IGNORE INTO {lingotek_entity_metadata} (entity_id, entity_type, entity_key, value)\nSELECT nid as entity_id, 'node' as entity_type, lingokey as entity_key, lingovalue as value\nFROM lingotek");

  //db_drop_table('lingotek');// as soon as this is running in an update function remove it from the uninstall function above
}