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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stBorchert’s picture

stBorchert’s picture

Status: Active » Needs review

update status

bojanz’s picture

What's your use case?
I like to do as little of these hacky changes as possible.

stBorchert’s picture

I 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.