Parent Directory
|
Revision Log
|
Revision Graph
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 |