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, db_result, file, function, has, if, installed, names, php, query, return, sql, transliteration_install, transliteration_uninstall

The transliteration.install Drupal example source code

// $Id: transliteration.install,v 2009/11/28 12:48:53 smk Exp $

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

 * Implementation of hook_install().
function transliteration_install() {
  module_load_include('inc', 'transliteration', 'transliteration.admin');

  if (!$query = transliteration_file_query(TRUE)) {
    // Database not supported.
  if (!db_result(db_query($query))) {
    // Don't bother if no files need to be fixed.
  $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'))));

 * Implementation of 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.