function field_defaults_batch_finished in Field Defaults 7.2
Same name and namespace in other branches
- 8 field_defaults.module \field_defaults_batch_finished()
- 7 field_defaults.module \field_defaults_batch_finished()
The batch finish handler.
1 string reference to 'field_defaults_batch_finished'
- field_defaults_batch_run in ./
field_defaults.module - The batch callback.
File
- ./
field_defaults.module, line 364 - field_defaults.module
Code
function field_defaults_batch_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(t('Default values updated on existing content'));
}
else {
$error_operation = reset($operations);
$message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
'%error_operation' => $error_operation[0],
'@arguments' => print_r($error_operation[1], TRUE),
));
drupal_set_message($message, 'error');
}
}