You are here

function i18ntaxonomy_nodeapi in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 contrib/i18ntaxonomy.module \i18ntaxonomy_nodeapi()
  2. 5 contrib/i18ntaxonomy.module \i18ntaxonomy_nodeapi()
  3. 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);
  }
}