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.
To improve the developer experience, as well making several desired customizations feasible it'd be nice to allow actions to define a custom class which VBO utilize for the operation.
Comment | File | Size | Author |
---|---|---|---|
#3 | interdiff-2-3.txt | 826 bytes | kerasai |
#3 | vbo-custom_operation_class-2724909-3.patch | 1.68 KB | kerasai |
Comments
Comment #2
kerasai CreditAttribution: kerasai commentedThis patch adds an extra, optional element to the
hook_action_info()
data that VBO uses. This extra element identifies the class name of the desired$operation
object used throughout the VBO process. If this element is not set or the class is not available, then the operation reverts to the standardViewsBulkOperationsAction
class.Comment #3
kerasai CreditAttribution: kerasai commentedNoticed the previous patch wasn't working quite right. Somehow missed a bit to get the specified class to load.