Sometimes it might be necessary for other modules to synchronize custom data or alter the way some synchronizations are done. Currently, there's no other way than patching i18nsync to accomplish this, because writing a custom sync function through hook_nodeapi() will just conflict with i18nsync.
To solve this, a hook_synchronize() could be invoked at the end of i18nsync_node_translation() before node_save().
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | i18nsync.patch | 387 bytes | account-deletion-needed |
Comments
Comment #1
account-deletion-needed commentedHere's a small patch doing just this. Modules implementing hook_synchronize() should use the following function signature:
$translation needs to be referenced because its node_save() still happens in i18nsync. To synchronize custom fields you can do:
Comment #2
Bevan commentedComment #3
Bevan commentedLooks like duplicate of #233787: i18nsync hook to me