function transliteration_install in Transliteration 7.3
Same name and namespace in other branches
- 5.2 transliteration.install \transliteration_install()
- 6.3 transliteration.install \transliteration_install()
- 6 transliteration.install \transliteration_install()
- 6.2 transliteration.install \transliteration_install()
Implements 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())) {
// Database not supported.
return;
}
if (!$query
->countQuery()
->execute()
->fetchColumn()) {
// 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/config/media/file-system/transliteration'),
)));
}