You are here

function i18nstrings_admin_form_submit in Internationalization 5.2

Same name and namespace in other branches
  1. 5.3 i18nstrings/i18nstrings.module \i18nstrings_admin_form_submit()
  2. 5 experimental/i18nstrings.module \i18nstrings_admin_form_submit()

Form submit callback

File

experimental/i18nstrings.module, line 95
Internationalization (i18n) package - translattable strings

Code

function i18nstrings_admin_form_submit($form_id, $form_values) {
  $strid = $form_values['strid'];
  foreach (i18n_supported_languages() as $language => $name) {
    i18nstrings_save_string($strid, $language, $form_values['languages'][$language]);
  }
  drupal_set_message(t('The strings have been updated'));
  return 'admin/settings/i18n/strings';
}