0

I would like to display a button for each content displayed in a view.

In a custom module, I have added a custom submission handler to the edit form (hook_form_FORM_ID_alter()) and defined the action on click (a field value is modified and the content is saved).

I'm missing the last step: Call the custom submit handler in a view field so that the button appears on each element of the mosaic.

Basically, the end user can click on the button of each content to decrease the quantity of content to 0 and make it disappear from the list (another custom module takes care of it).

How do I display this button linked to the custom submission handler in a view?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.