Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This project is not covered by Drupal’s security advisory policy.
Unsupported. Do not use this module.
Bulk processing of content entities in queue by defining custom operations.
/**
* Defines hook to provide information about operations.
*/
function hook_bulk_process_operations_info() {
return [
[
// The machine name of the operation. Used to track the type of the
// change made.
'name' => '',
// The entity to apply the change.
'entity_type' => 'node',
// Callback to discover items.
// Should return either scalar array of entity ids or
// array of array, with each element containing 'id' key with value +
// additional data.
'discovery callback' => function () {
return [
[
'id' => 1,
'custom1' => 'some custom data',
],
[
'id' => 2,
'custom2' => 'other custom data',
],
];
},
'process callback' => function ($entity, $data) {
$node = $entity;
// Change a field value.
$node->title .= ' changed';
return BulkProcessItemProcessor::ENTITY_NEEDS_SAVE;
},
],
];
}
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - Module categories: Content Editing Experience
- Created by alex.skrypnyk on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.