function i18n_contact_form_contact_category_edit_form_submit in Internationalization 7
Remove strings for edited/added categories.
1 string reference to 'i18n_contact_form_contact_category_edit_form_submit'
- i18n_contact_form_contact_category_edit_form_alter in i18n_contact/
i18n_contact.module - Implements hook_form_FORM_ID_alter().
File
- i18n_contact/
i18n_contact.module, line 52 - Internationalization (i18n) submodule: Multilingual contact forms
Code
function i18n_contact_form_contact_category_edit_form_submit($form, &$form_state) {
$contact = $form_state['values'];
i18n_string_object_update('contact_category', $contact);
// If the save and translate button was clicked, redirect to the translate
// tab instead of the block overview.
if ($form_state['triggering_element']['#name'] == 'save_translate') {
$form_state['redirect'] = 'admin/structure/contact/edit/' . $contact['cid'] . '/translate';
}
}