Added move of comments to nodetype.module

tabun - November 13, 2008 - 08:28
Project:Nodetype
Version:6.x-1.0
Component:Code
Category:task
Priority:minor
Assigned:tabun
Status:active
Description

I made it for my own needs, but maybe it will interesting for someone else.
I moved default Change Node Type form field into fieldset, as it was mentioned in other issues.
Also I added that similar simple functionality for comments.
When you edit the comment, You have option to move it to other node by entering this node {nid}
Only node {nid} is changed.
However, after that, the _comment_update_node_statistics() is called for both affected nodes to keep it updated.
Also, there is simple validation for unexistent node {nid}

AttachmentSize
nodetype.zip7.56 KB

#1

tabun - November 13, 2008 - 08:31

Forgot to say, I did not tested this functionality for threaded comments, as I have switched off the replies to comment in my Drupal installation.

 
 

Drupal is a registered trademark of Dries Buytaert.