function search_api_execute_pending_tasks_finished in Search API 7
Batch finish callback for pending server tasks.
1 string reference to 'search_api_execute_pending_tasks_finished'
- search_api_execute_pending_tasks in ./
search_api.module - Provides a batch wrapper for search_api_server_tasks_check().
File
- ./
search_api.module, line 1564 - Provides a flexible framework for implementing search services.
Code
function search_api_execute_pending_tasks_finished($success, $results, $operations) {
if ($success) {
// Clear the previous warning.
drupal_get_messages('warning');
// Alert user to the number of tasks executed.
drupal_set_message(format_plural($results['total'], 'Successfully executed @count task.', 'Successfully executed @count tasks.'));
}
}