function transliteration_install in Transliteration 6.3
Same name and namespace in other branches
- 5.2 transliteration.install \transliteration_install()
- 6 transliteration.install \transliteration_install()
- 6.2 transliteration.install \transliteration_install()
- 7.3 transliteration.install \transliteration_install()
Implementation of hook_install().
File
- ./
transliteration.install, line 11 - Install, update, and uninstall functions for the transliteration module.
Code
function transliteration_install() {
module_load_include('inc', 'transliteration', 'transliteration.admin');
if (!($query = transliteration_file_query(TRUE))) {
// Database not supported.
return;
}
if (!db_result(db_query($query))) {
// Don't bother if no files need to be fixed.
return;
}
$t = get_t();
drupal_set_message($t('Transliteration has been installed. <a href="@transliteration-url">Fix existing file names</a>.', array(
'@transliteration-url' => url('admin/settings/file-system/transliteration'),
)));
}