You are here

function transliteration_update_1 in Transliteration 6

Same name and namespace in other branches
  1. 5.2 transliteration.install \transliteration_update_1()
  2. 6.2 transliteration.install \transliteration_update_1()

Retroactively transliterate existing filenames.

File

./transliteration.install, line 98

Code

function transliteration_update_1() {
  $ret = array();
  transliteration_install_compat();
  $errors = transliteration_install_retroactive();
  if (!$errors) {
    drupal_set_message('Existing filenames have been successfully transliterated.');
  }
  else {
    $message = 'Not all existing filenames could be transliterated. The following files could not be accessed:';
    $message .= theme_item_list($errors);
    drupal_set_message($message, 'error');
  }
  return $ret;
}