You are here

function i18n_string_install_update_string in Internationalization 7

Helper function to upate strings

1 call to i18n_string_install_update_string()
i18n_field_update_7000 in i18n_field/i18n_field.install
Implements hook_i18n_drupal6_update().

File

i18n_string/i18n_string.install, line 134
Installation file for i18n_string module.

Code

function i18n_string_install_update_string($string) {
  $string->context = $string->type . ':' . $string->objectid . ':' . $string->property;
  $string->location = $string->textgroup . ':' . $string->context;
  $string->objectindex = (int) $string->objectid;
  drupal_write_record('i18n_string', $string, 'lid');
  drupal_write_record('locales_source', $string, 'lid');
}