You are here

function lingotek_update_7212 in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.install \lingotek_update_7212()
  2. 7.4 lingotek.install \lingotek_update_7212()
  3. 7.5 lingotek.install \lingotek_update_7212()
  4. 7.6 lingotek.install \lingotek_update_7212()

Adds the lingotek_entity_metadata table.

File

./lingotek.install, line 406
Installation for Lingotek Community Translation Module.

Code

function lingotek_update_7212(&$sandbox) {
  $module = 'lingotek';
  $table = 'lingotek_config_metadata';
  if (!db_table_exists($table)) {
    $schema = drupal_get_schema_unprocessed($module, $table);
    db_create_table($table, $schema);
    $output = t('Table @table was created.', array(
      '@table' => $table,
    ));
  }
  else {
    $output = t('The @table table already exists. No action taken.', array(
      '@table' => $table,
    ));
  }
  return $output;
}