home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (transliteration.install)

This example Drupal source code file (transliteration.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

been, existing, file, function, has, href, if, installed, names, php, return, translate, transliteration_install, transliteration_uninstall

The transliteration.install Drupal example source code

<?php
// $Id: transliteration.install,v 1.6 2009/11/28 12:49:12 smk Exp $

/**
 * @file
 * Install, update, and uninstall functions for the transliteration module.
 */

/**
 * Implements hook_install().
 */
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'))));
}

/**
 * Implements hook_uninstall().
 */
function transliteration_uninstall() {
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal transliteration.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.