Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
70d60fb8
Commit
70d60fb8
authored
Apr 09, 2010
by
Dries
Browse files
- Patch
#642614
by plach: locale_add_language() should reset entity_info() cache.
parent
dcda1fcd
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/locale.inc
View file @
70d60fb8
...
...
@@ -386,6 +386,8 @@ function locale_add_language($langcode, $name = NULL, $native = NULL, $direction
_locale_invalidate_js
(
$langcode
);
watchdog
(
'locale'
,
'The %language language (%code) has been created.'
,
array
(
'%language'
=>
$name
,
'%code'
=>
$langcode
));
module_invoke_all
(
'multilingual_settings_changed'
);
}
/**
* @} End of "locale-api-add"
...
...
modules/locale/locale.admin.inc
View file @
70d60fb8
...
...
@@ -339,8 +339,6 @@ function locale_languages_predefined_form_submit($form, &$form_state) {
batch_set
(
$batch
);
}
module_invoke_all
(
'multilingual_settings_changed'
);
$form_state
[
'redirect'
]
=
'admin/config/regional/language'
;
return
;
}
...
...
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