Commit 70d60fb8 authored by Dries's avatar Dries

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

parent dcda1fcd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment