function i18nstrings_admin_form_submit in Internationalization 5.3
Same name and namespace in other branches
- 5 experimental/i18nstrings.module \i18nstrings_admin_form_submit()
- 5.2 experimental/i18nstrings.module \i18nstrings_admin_form_submit()
Form submit callback
File
- i18nstrings/
i18nstrings.module, line 102 - 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';
}