function _optimizedb_list_tables_operation_execute_finished in OptimizeDB 7
Same name and namespace in other branches
- 8 optimizedb.module \_optimizedb_list_tables_operation_execute_finished()
- 6 optimizedb.module \_optimizedb_list_tables_operation_execute_finished()
Output results when a batch is complete.
Callback for batch_set().
Parameters
bool $success: A boolean indicating whether the batch operation successfully concluded.
int $results: The results from the batch process.
array $operations: The batch operations that remained unprocessed. Only relevant if $success is FALSE.
1 string reference to '_optimizedb_list_tables_operation_execute_finished'
- _optimizedb_list_tables_operation_execute in ./
optimizedb.module - Performing operations on tables.
File
- ./
optimizedb.module, line 541 - Database Optimization.
Code
function _optimizedb_list_tables_operation_execute_finished($success, $results, $operations) {
if ($success) {
if (isset($results['errors'])) {
$result = $results['errors'];
}
else {
$result = array();
}
$_SESSION['optimizedb_list_tables_operations'] = $result;
}
else {
drupal_set_message(t('Completed with errors.'), 'error');
}
}