Bring back the delete button
| Project: | Content Profile |
| Version: | 6.x-1.0-beta4 |
| Component: | Base module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Via node access modules or node_content_access (the one that deals with the delete any, delete own content type permissions), the use of delete can be easily controlled. Removing it from the form makes the simple task of deleting a profile become complex (had to go to a bulk operations view to delete the node).
Of course simply removing the delete #access line didn't work... :-(
Changed the #redirect to become 'redirect' in submit function since redirect prevented redirection to delete page. (may not work, I just realized. I have a redirect set up between user profiles and their nodes, so they always redirect for me).
Put a submit call before the delete submit so destination is set (which determines the cancel buttons destination also).
Patch may have issues; there was already some altered code there :/
| Attachment | Size |
|---|---|
| profile_delete.patch | 1.4 KB |
