You are here

function transliteration_install in Transliteration 6

Same name and namespace in other branches
  1. 5.2 transliteration.install \transliteration_install()
  2. 6.3 transliteration.install \transliteration_install()
  3. 6.2 transliteration.install \transliteration_install()
  4. 7.3 transliteration.install \transliteration_install()

Implementation of hook_install().

File

./transliteration.install, line 6

Code

function transliteration_install() {
  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');
  }
}