function lingotek_cleanup_utility in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lingotek.util.inc \lingotek_cleanup_utility()
- 7.4 lingotek.util.inc \lingotek_cleanup_utility()
2 calls to lingotek_cleanup_utility()
- lingotek_form_cleanup_utility_submit in ./
lingotek.admin.inc - Submit handler for the lingotek_form_field_language_utility form. Calls the function that creates a batch job to do the field migration.
- lingotek_setup_node_translation_settings_form_submit in ./
lingotek.setup.inc - Node Translation Settings - Form Submit
File
- ./
lingotek.util.inc, line 891 - Utility functions.
Code
function lingotek_cleanup_utility($show_messages = TRUE) {
lingotek_set_priority();
lingotek_set_defaults();
lingotek_migration_1();
lingotek_migration_2();
lingotek_migration_3();
lingotek_add_missing_locales();
// fills in any missing lingotek_locale values to the languages table
lingotek_field_language_data_cleanup_batch_create();
if ($show_messages) {
drupal_set_message(t('The field data cleanup utility completed.'));
}
lingotek_batch_identify_content();
// Identify pre-existing content (based on these new content-type settings)
if ($show_messages) {
drupal_set_message(t('Translatable content has been identified.'));
}
}