translation_helpers.install in Translation helpers 6
File
translation_helpers.installView source
<?php
/**
* Implementation of hook_install().
*/
function translation_helpers_install() {
// Set a weight lower than the translation module's weight.
// This is needed because the translation module changes tnid values that we need
// to test for.
$weight = db_result(db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'translation'"));
db_query("UPDATE {system} SET weight = %d WHERE type = 'module' AND name = 'translation_helpers'", $weight - 5);
}
Functions
Name | Description |
---|---|
translation_helpers_install | Implementation of hook_install(). |