1 locale.admin.inc | language_negotiation_configure_url_form_submit($form, &$form_state) |
Form submission handler for language_negotiation_configure_url_form().
File
- core/
modules/ locale/ locale.admin.inc, line 271 - Admin page callbacks for the Locale module.
Code
function language_negotiation_configure_url_form_submit($form, &$form_state) {
// Save selected format (prefix or domain).
config_set('locale.settings', 'language_negotiation_url_part', $form_state['values']['language_negotiation_url_part']);
// Save new domain and prefix values.
locale_language_negotiation_url_prefixes_save($form_state['values']['prefix']);
locale_language_negotiation_url_domains_save($form_state['values']['domain']);
// Clear menu caches, to ensure that admin bar links are updated to include
// any change in the path prefix (so not to 404).
menu_cache_clear_all();
backdrop_set_message(t('Configuration saved.'));
}