I have a content type which shows a list of other nodes connected via an entity reference field.
These nodes are loaded through an entity field query in a preprocess_node module, then displayed using node_view_multiple.

What I would like to do is add a checkbox to each node with a submit button at the bottom.

Essentially this is to setup a way to delete nodes from the content page, without having to go into the admin menus. I'm a bit confused where to start with adding the form elements in this setup.

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.