[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/modules/translation/ -> translation.module (summary)

(no description)

File Size: 355 lines (17 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 12 functions

  translation_help()
  translation_menu()
  _translation_tab_access()
  translation_perm()
  translation_form_alter()
  translation_link()
  translation_nodeapi()
  translation_remove_from_set()
  translation_node_get_translations()
  translation_supported_type()
  translation_path_get_translations()
  translation_translation_link_alter()

Functions
Functions that are not part of a class:

translation_help($path, $arg)   X-Ref
Implementation of hook_help().


translation_menu()   X-Ref
Implementation of hook_menu().


_translation_tab_access($node)   X-Ref
Menu access callback.

Only display translation tab for node types, which have translation enabled
and where the current node is not language neutral (which should span
all languages).

translation_perm()   X-Ref
Implementation of hook_perm().


translation_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().

- Add translation option to content type form.
- Alters language fields on node forms when a translation
is about to be created.

translation_link($type, $node = NULL, $teaser = FALSE)   X-Ref
Implementation of hook_link().

Display translation links with native language names, if this node
is part of a translation set.

translation_nodeapi(&$node, $op, $teaser, $page)   X-Ref
Implementation of hook_nodeapi().

Manages translation information for nodes.

translation_remove_from_set($node)   X-Ref
Remove a node from its translation set (if any)
and update the set accordingly.


translation_node_get_translations($tnid)   X-Ref
Get all nodes in a translation set, represented by $tnid.

param: $tnid
return:

translation_supported_type($type)   X-Ref
Returns whether the given content type has support for translations.

return:

translation_path_get_translations($path)   X-Ref
Return paths of all translations of a node, based on
its Drupal path.

param: $path
return:

translation_translation_link_alter(&$links, $path)   X-Ref
Implementation of hook_translation_link_alter().

Replaces links with pointers to translated versions of the content.



Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7