You are here

function entity_translation_upgrade_load in Entity Translation 7

Loads the upgrade history entry for the given nid.

1 call to entity_translation_upgrade_load()
entity_translation_upgrade_init in entity_translation_upgrade/entity_translation_upgrade.module
Implements hook_init().

File

entity_translation_upgrade/entity_translation_upgrade.module, line 135
Provides permanent redirects for unavailable node translations.

Code

function entity_translation_upgrade_load($nid) {
  return db_select('entity_translation_upgrade_history', 'etu')
    ->fields('etu')
    ->condition('etu.nid', $nid)
    ->execute()
    ->fetchObject();
}