[drupal-devel] [bug] Node.module does not fire event when a
revision is deleted.
Souvent22
drupal-devel at drupal.org
Thu Sep 15 17:36:20 UTC 2005
Issue status update for
http://drupal.org/node/31323
Post a follow up:
http://drupal.org/project/comments/add/31323
Project: Drupal
Version: cvs
Component: node.module
Category: bug reports
Priority: critical
Assigned to: Anonymous
Reported by: Souvent22
Updated by: Souvent22
Status: patch (code needs review)
Attachment: http://drupal.org/files/issues/node_revisions.patch (1.39 KB)
When you delete a revision, nothing is fired to tell other modules that
a revision of that node has been deleted. This patch fires a
_invoke_nodeapi" so that other modules will know, and can catch the
event that a revision of a node has been deleted, and then take the
correct action. This is needed for other modules such as
'upload.module', which keeps files for each revision. This patch also
creates a watchdog entry when a revision is deleted.
I'm sure the wording of the watch dog entry, if it should be watched,
_invoke vs another paramenter, etc. will be argued, but I wanted to get
this up, so I can hear the arguments, and get this quared away and
patched it. I think this is really important. Thanks.
Souvent22
More information about the drupal-devel
mailing list