function translation_helpers_install in Translation helpers 6
Implementation of hook_install().
File
- ./
translation_helpers.install, line 6
Code
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);
}