this patch fixes several problems with drupal's delete cycle, the main one being that admin batch delete was broken. the main cause of this was that node_delete could not be called directly anymore after the forms API upgrade. this patch fixes that, and makes node_delete exactly that--a function which deletes a node. the confirm screen has been seperated out from the act of deletion, which allows admin/node or any other module to call node_delete on it's own if necessary. in the new structure, pass the nid to be deleted, as follows:
node_delete($nid)
it's not longer necessary to pass a confirm element to bypass the confirm screen, and passing an array will no longer work--the array structure has been eliminated since it's no longer necessary.
Comment | File | Size | Author |
---|---|---|---|
node_delete.patch | 6.94 KB | hunmonk | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedThe following modules use node_delete():
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks. Please update the documentation.
Comment #3
(not verified) CreditAttribution: commented