diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:36:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-12-09 11:36:04 +0000 |
commit | 8ad5cba994367f5b5fe35a2caaae7ec321ecaebd (patch) | |
tree | 1369c05e8399685116fea5939051eb4855017f26 /modules/translation/translation.module | |
parent | c0cb68abccfa5daa442ad3deb410b81c7da7a52b (diff) | |
download | brdo-8ad5cba994367f5b5fe35a2caaae7ec321ecaebd.tar.gz brdo-8ad5cba994367f5b5fe35a2caaae7ec321ecaebd.tar.bz2 |
- Patch #344661 by Dave Reid: API doc improvements for hook_translation_link_alter.
Diffstat (limited to 'modules/translation/translation.module')
-rw-r--r-- | modules/translation/translation.module | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/translation/translation.module b/modules/translation/translation.module index e7a1f589d..801e556e0 100644 --- a/modules/translation/translation.module +++ b/modules/translation/translation.module @@ -335,11 +335,11 @@ function translation_path_get_translations($path) { } /** - * Implementation of hook_alter_translation_link(). + * Implementation of hook_translation_link_alter(). * * Replaces links with pointers to translated versions of the content. */ -function translation_translation_link_alter(&$links, $path) { +function translation_translation_link_alter(array &$links, $path) { if ($paths = translation_path_get_translations($path)) { foreach ($links as $langcode => $link) { if (isset($paths[$langcode])) { @@ -353,4 +353,3 @@ function translation_translation_link_alter(&$links, $path) { } } } - |