i18nprofile_field_form_submit($form, &$form_state)
contributions/i18n/i18nprofile/i18nprofile.module, line 134
Process profile_field_form submissions.
<?php
function i18nprofile_field_form_submit($form, &$form_state) {
$values = (object)$form_state['values'];
// Check old field name in case it has changed
$oldname = $form['fields']['name']['#default_value'];
if ($oldname != 'profile_' && $oldname != $values->name) {
i18nstrings_update_context("profile:field:$oldname:*", "profile:field:$values->name:*");
}
// Store category
tt("profile:category", $values->category, NULL, TRUE);
// Store strings to translate: title, explanation, options
to("profile:field:$values->name", $values, array('title', 'explanation', 'options'), NULL, TRUE);
}
?>