function i18nprofile_translation_category_submit in Internationalization 5.3
Same name and namespace in other branches
- 5 i18nprofile/i18nprofile.module \i18nprofile_translation_category_submit()
- 5.2 i18nprofile/i18nprofile.module \i18nprofile_translation_category_submit()
Processs category translations
File
- i18nprofile/
i18nprofile.module, line 218
Code
function i18nprofile_translation_category_submit($form_id, $form_values) {
$lang = $form_values['language'];
$data = $form_values['translation'];
$translation = array();
foreach ($data as $key => $value) {
if ($key && $value) {
$translation[$key] = $value;
}
}
variable_set('i18nprofile_' . $lang, $translation);
//return 'admin/settings/profile/translation';
}