Skip to content
Snippets Groups Projects
Commit 70d60fb8 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #642614 by plach: locale_add_language() should reset entity_info() cache.

parent dcda1fcd
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment