[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/transliteration/ -> transliteration.install (source)

   1  <?php
   2  // $Id: transliteration.install,v 1.4.2.3 2009/11/28 12:48:53 smk Exp $
   3  
   4  /**
   5   * @file
   6   * Install, update, and uninstall functions for the transliteration module.
   7   */
   8  
   9  /**
  10   * Implementation of hook_install().
  11   */
  12  function transliteration_install() {
  13    module_load_include('inc', 'transliteration', 'transliteration.admin');
  14  
  15    if (!$query = transliteration_file_query(TRUE)) {
  16      // Database not supported.
  17      return;
  18    }
  19    if (!db_result(db_query($query))) {
  20      // Don't bother if no files need to be fixed.
  21      return;
  22    }
  23    $t = get_t();
  24    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'))));
  25  }
  26  
  27  /**
  28   * Implementation of hook_uninstall().
  29   */
  30  function transliteration_uninstall() {
  31  }
  32  


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7