function lingotek_cleanup_utility in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.2 lingotek.util.inc \lingotek_cleanup_utility()
- 7.4 lingotek.util.inc \lingotek_cleanup_utility()
Clean-up utility
3 string references to 'lingotek_cleanup_utility'
- lingotek_admin_utilities_form in ./
lingotek.admin.inc - Utilities Form
- lingotek_batch_reset_content in ./
lingotek.batch.inc - Batch Create: Lingotek Reset Content
- lingotek_setup_additional_translation_settings_form_submit in ./
lingotek.setup.inc
File
- ./
lingotek.util.inc, line 907 - Utility functions.
Code
function lingotek_cleanup_utility($show_messages = TRUE) {
LingotekLog::trace(__METHOD__);
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.'));
}
}