function lingotek_admin_prefs_form_submit in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.3 lingotek.admin.inc \lingotek_admin_prefs_form_submit()
- 7.4 lingotek.admin.inc \lingotek_admin_prefs_form_submit()
- 7.5 lingotek.admin.inc \lingotek_admin_prefs_form_submit()
- 7.6 lingotek.admin.inc \lingotek_admin_prefs_form_submit()
1 string reference to 'lingotek_admin_prefs_form_submit'
- lingotek_admin_prefs_form in ./
lingotek.admin.inc - Lingotek prefs Form
File
- ./
lingotek.admin.inc, line 1615
Code
function lingotek_admin_prefs_form_submit($form, &$form_state) {
lingotek_admin_language_switcher_form_submit($form, $form_state);
$form_state['values']['lingotek_account_plan_type'] = $form['prefs']['lingotek_account_plan_type']['#checked'] ? 'advanced' : 'standard';
system_settings_form_submit($form, $form_state);
if (module_exists('bean') && variable_get('lingotek_translate_beans')) {
lingotek_add_language_for_beans();
}
if (module_exists('group') && variable_get('lingotek_translate_groups')) {
lingotek_add_language_for_groups();
if (!db_table_exists('entity_translation')) {
drupal_set_message(t('For Group translation, make sure you\'ve installed the <i>Entity Translation</i> module.'), 'warning', FALSE);
}
}
if (module_exists('paragraphs') && variable_get('lingotek_translate_paragraphs', FALSE)) {
lingotek_add_language_for_paragraphs();
if (!db_table_exists('entity_translation')) {
drupal_set_message(t('For Paragraphs translation, make sure you\'ve installed the <i>Entity Translation</i> module.'), 'warning', FALSE);
}
}
if (module_exists('file_entity') && variable_get('lingotek_translate_files', FALSE)) {
lingotek_add_language_for_file_entities();
if (!db_table_exists('entity_translation')) {
drupal_set_message(t('For File Entity translation, make sure you\'ve installed the <i>Entity Translation</i> module.'), 'warning', FALSE);
}
}
if (!module_exists('entity_menu_links') && $form_state['values']['lingotek_advanced_menu_links'] == TRUE) {
drupal_set_message(t('For advanced menu link translation, make sure you\'ve installed the <i>Entity Menu Links</i> module.'), 'warning', FALSE);
}
menu_rebuild();
}