I want to remove the delete button from a standard edit form in certain cases and I'm looking for the right way to do that.
So far I found that
hide() marks an element as already rendered so it basically tricks the rendering process.
['#access'] = FALSE does something similar I guess, but still a little different.
In both cases, nothing is rendered concerning the delete button, but does either of them prevent the delete code from being executed on submit (e.g. if a user was manipulating the POST request)?
Or would I need a
form_validate() method for that anyway?