function i18ncontent_disable in Internationalization 6
Implementation of hook_disable().
This function depends on i18nstrings, so it must be run on _disable() better than uninstall().
File
- i18ncontent/
i18ncontent.install, line 27 - Installation file for i18ncontent module.
Code
function i18ncontent_disable() {
// Remove and restore help texts.
$langcode = language_default('language');
foreach (node_get_types() as $type) {
if (!$type->help && ($help = i18nstrings_ts("nodetype:type:{$type->type}:help", $langcode))) {
$type->help = $help;
node_type_save($type);
}
}
// @ TODO Some more clean up for strings
}