function tmgmt_translator_form_submit in Translation Management Tool 7
Submit handler for the translator entity form.
Populates and stores the submitted values for the translator entity via entity_ui_form_submit_build_entity().
See also
entity_ui_form_submit_build_entity()
File
- ui/
includes/ tmgmt_ui.pages.inc, line 225 - Provides page callbacks and form functions for the Translation Management Tool User Interface module.
Code
function tmgmt_translator_form_submit($form, &$form_state) {
entity_ui_form_submit_build_entity($form, $form_state)
->save();
drupal_set_message(t('The configuration options have been saved.'));
$form_state['redirect'] = 'admin/config/regional/tmgmt_translator';
}