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.
In #2072057: pass the $handler object to adminOptionsForm() so it can access the view the $field_handler
has been added to the adminOptionsForm(). Unfortunately the actions settings callback never has a chance to access the view (or at least I didn't found a way).
Proposal: pass the field handler to the settings callback so it can access the view.
Comment | File | Size | Author |
---|---|---|---|
#1 | vbo_pass_handler_to_settings_callback-2241913-1.patch | 633 bytes | stBorchert |
Comments
Comment #1
stBorchertComment #2
stBorchertupdate status
Comment #3
bojanz CreditAttribution: bojanz commentedWhat's your use case?
I like to do as little of these hacky changes as possible.
Comment #4
stBorchertI tried to create an action to bulk-export data (using views_data_export) and needed to select the ID of the export-display to use for the action. The only way I found to access the current views data and to build an option-list of the proper displays was to pass the field handler to the settings form of the action.