function i18n_admin_manage_screen_submit in Internationalization 5.2
Same name and namespace in other branches
- 5.3 i18n.module \i18n_admin_manage_screen_submit()
- 5 i18n.module \i18n_admin_manage_screen_submit()
Save language settings in variable
File
- ./
i18n.module, line 972 - Internationalization (i18n) module
Code
function i18n_admin_manage_screen_submit($form_id, $form_values) {
// Save changes to existing languages.
foreach (array(
'site_default',
'name',
'rtl',
'native',
'enabled',
) as $key) {
$save[$key] = $form_values[$key];
}
$save['name']['en'] = 'English';
$languages = locale_supported_languages(FALSE, TRUE);
foreach ($languages['name'] as $key => $lang) {
// Nothing
}
variable_set('i18n_languages', $save);
}