function i18ntaxonomy_nodeapi in Internationalization 5
Same name and namespace in other branches
- 5.3 contrib/i18ntaxonomy.module \i18ntaxonomy_nodeapi()
- 5.2 contrib/i18ntaxonomy.module \i18ntaxonomy_nodeapi()
- 6 i18ntaxonomy/i18ntaxonomy.module \i18ntaxonomy_nodeapi()
Implementation of hook_nodeapi()
This runs after taxonomy:nodeapi, so we just translate terms here
File
- contrib/
i18ntaxonomy.module, line 114 - Internationalization (i18n) package - taxonomy term translation
Code
function i18ntaxonomy_nodeapi(&$node, $op, $teaser, $page) {
if ($op == 'view' && array_key_exists('taxonomy', $node)) {
_i18ntaxonomy_translate_terms($node->taxonomy);
}
}