1 system.admin.inc | _system_utf8mb4_convert_batch_finished($success, $results, $operations) |
Performs post-processing for node_access_rebuild().
Parameters
bool $success: A boolean indicating whether the re-build process has completed.
array $results: An array of results information.
array $operations: An array of function calls (not used in this function).
File
- core/
modules/ system/ system.admin.inc, line 3037 - Admin page callbacks for the System module.
Code
function _system_utf8mb4_convert_batch_finished($success, $results, $operations) {
if ($success) {
backdrop_set_message(t('Upgrade successful. @count database tables have been converted to use 4 byte UTF-8.', array('@count' => count($results['converted']))));
state_set('maintenance_mode', FALSE);
state_set('database_utf8mb4_active', TRUE);
}
else {
backdrop_set_message(t('An error was encountered while converting tables! You should restore a database backup, correct any errors, and then try again. Errors reported:') . theme('item_list', $results['errors']), 'error');
}
backdrop_goto('admin/reports/status');
}