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

merge-requests/26/head
Dries Buytaert 2010-04-09 12:14:25 +00:00
parent dcda1fcdb5
commit 70d60fb88f
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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;
}