Mercurial > defr > drupal > core
comparison modules/translation/translation.module @ 15:4347c45bb494 6.7
Drupal 6.7
author | Franck Deroche <webmaster@defr.org> |
---|---|
date | Tue, 23 Dec 2008 14:32:44 +0100 |
parents | 8b6c45761e01 |
children | 3edae6ecd6c6 |
comparison
equal
deleted
inserted
replaced
14:626fcabfa4b8 | 15:4347c45bb494 |
---|---|
1 <?php | 1 <?php |
2 // $Id: translation.module,v 1.23.2.2 2008/10/16 11:57:52 goba Exp $ | 2 // $Id: translation.module,v 1.23.2.3 2008/12/10 20:35:06 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * Manages content translations. | 6 * Manages content translations. |
7 * | 7 * |
319 } | 319 } |
320 return $paths; | 320 return $paths; |
321 } | 321 } |
322 | 322 |
323 /** | 323 /** |
324 * Implementation of hook_alter_translation_link(). | 324 * Implementation of hook_translation_link_alter(). |
325 * | 325 * |
326 * Replaces links with pointers to translated versions of the content. | 326 * Replaces links with pointers to translated versions of the content. |
327 */ | 327 */ |
328 function translation_translation_link_alter(&$links, $path) { | 328 function translation_translation_link_alter(&$links, $path) { |
329 if ($paths = translation_path_get_translations($path)) { | 329 if ($paths = translation_path_get_translations($path)) { |
337 unset($links[$langcode]); | 337 unset($links[$langcode]); |
338 } | 338 } |
339 } | 339 } |
340 } | 340 } |
341 } | 341 } |
342 |