You are here

function entity_test_i18n_entity_test_type_update in Entity API 7

Implements hook_{entity_test_type}_update().

File

tests/entity_test_i18n.module, line 40
Entity-test i18n integration module via entity API i18n support.

Code

function entity_test_i18n_entity_test_type_update($test_type) {

  // Account for name changes.
  if ($test_type->original->name != $test_type->name) {
    i18n_string_update_context("entity_test:entity_test_type:{$test_type->original->name}:*", "entity_test:entity_test_type:{$test_type->name}:*");
  }
  i18n_string_object_update('entity_test_type', $test_type);
}