/[drupal]/contributions/modules/translation_helpers/translation_helpers.install
ViewVC logotype

Contents of /contributions/modules/translation_helpers/translation_helpers.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Oct 8 00:03:45 2008 UTC (13 months, 3 weeks ago) by nedjo
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
File MIME type: text/x-php
Initial commit of new module providing helper functions for use by
modules working with multilingual content. In particular, facilitates
response to change in source translation, useful for modules that track
data by node.tnid.
1 <?php
2 // $Id: $
3
4 /**
5 * Implementation of hook_install().
6 */
7 function translation_helpers_install() {
8 // Set a weight lower than the translation module's weight.
9 // This is needed because the translation module changes tnid values that we need
10 // to test for.
11 $weight = db_result(db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'translation'"));
12 db_query("UPDATE {system} SET weight = %d WHERE type = 'module' AND name = 'translation_helpers'", $weight - 5);
13 }
14

  ViewVC Help
Powered by ViewVC 1.1.2