Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
db4fa95f
Commit
db4fa95f
authored
Jan 06, 2010
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#675144
by jhodgdon: Typo: translation_language_switch_links_alter() should be linkS alter().
parent
102a6829
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/locale/locale.api.php
modules/locale/locale.api.php
+1
-1
modules/translation/translation.module
modules/translation/translation.module
+1
-1
No files found.
modules/locale/locale.api.php
View file @
db4fa95f
...
...
@@ -38,7 +38,7 @@ function hook_locale($op = 'groups') {
* @param $path
* The current path.
*/
function
hook_language_switch_link_alter
(
array
&
$links
,
$type
,
$path
)
{
function
hook_language_switch_link
s
_alter
(
array
&
$links
,
$type
,
$path
)
{
global
$language
;
if
(
$type
==
LANGUAGE_TYPE_CONTENT
&&
isset
(
$links
[
$language
]))
{
...
...
modules/translation/translation.module
View file @
db4fa95f
...
...
@@ -435,7 +435,7 @@ function translation_path_get_translations($path) {
}
/**
* Implements hook_language_switch_link_alter().
* Implements hook_language_switch_link
s
_alter().
*
* Replaces links with pointers to translated versions of the content.
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment