I’m building a module that creates a content type ( http://yaremchuk.ru/blog/how-create-content-type-drupal-7-programmatically). I would like to programmatically enable multilingual support with i18n but I don’t find how ?
It’s the same as manually go To Publishing Options -> Multilingual support -> “Enabled, with translation” but it has to be done in module installation.
Do you have an idea ?
Thanks in advance.
Here is the solution I found :
in hook_install :
and in hook_uninstall :
No trace of this in documentation.
Thanks for the really good documentation drupal ! 😉
Hopes my hours spent on it will help someone…