function locale_system_file_system_settings_submit

Submit handler for the file system settings form.

Clears the translation status when the Interface translations directory changes. Without a translations directory local po files in the directory should be ignored. The old translation status is no longer valid.

1 string reference to 'locale_system_file_system_settings_submit'
locale_form_system_file_system_settings_alter in drupal/core/modules/locale/locale.module
Implements hook_form_FORM_ID_alter() for system_file_system_settings().

File

drupal/core/modules/locale/locale.module, line 784
Enables the translation of the user interface to languages other than English.

Code

function locale_system_file_system_settings_submit(&$form, $form_state) {
  if ($form['translation_path']['#default_value'] != $form_state['values']['translation_path']) {
    locale_translation_clear_status();
  }
  config('locale.settings')
    ->set('translation.path', $form_state['values']['translation_path'])
    ->save();
}