[documentation] [task] Update node_example.module to use revisions

drewish drupal-docs at drupal.org
Tue Feb 21 23:06:31 UTC 2006


Issue status update for 
http://drupal.org/node/50626
Post a follow up: 
http://drupal.org/project/comments/add/50626

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     tasks
 Priority:     normal
 Assigned to:  drewish
 Reported by:  drewish
 Updated by:   drewish
 Status:       patch (code needs work)

i've opened an issue to add a hook_delete_revision():
http://drupal.org/node/50627




drewish



Previous comments:
------------------------------------------------------------------------

Tue, 21 Feb 2006 22:52:10 +0000 : drewish

Attachment: http://drupal.org/files/issues/node_example.module_revisions.patch (3.54 KB)

I was looking information on the revision system when I came across a
comment [1] from someone confused by the changes. In there they asked
for node_example.module to be updated to demonstrate revisions.
Thinking that was a good idea I started on it. 


In the process I realized that it was kind of kludgy that you had to
implement hook_nodeapi() to delete revisions. I'm working on a patch
for that so I'm putting this aside for the moment. 


Attached is a patch that adds revision support EXCEPT for deleting a
single revision.
[1] http://drupal.org/node/30030#comment-94901






More information about the documentation mailing list