The node type form allows changing a node to using Drupal comments from node comments and vice versa. When this happens we need to translate comment data to nodecomment data and vice versa, preferably using batch API.

We should also ensure that it's documented that if uninstalling nodecomment this operation needs to be performed.

CommentFileSizeAuthor
#3 nodecomment_convert.patch19.98 KBquicksketch

Comments

merlinofchaos’s picture

Issue tags: +DruBB

tagging

quicksketch’s picture

Assigned: Unassigned » quicksketch

I'm working on this currently.

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new19.98 KB

I've committed the attached patch which adds this functionality. Because I didn't want to get into making the node type form multiple pages, I made a separate menu callback that the user is redirected to if they've made changes to the comment settings that require conversion. The process uses Batch API and can convert between pretty much any two comment types: Comment to Node, Node to Comment, and Node to Node. It can potentially leave behind residual data for nodes if converting between two node types that have different fields, but it's close enough for an initial pass at this functionality.

merlinofchaos’s picture

Wow, great job! Suddenly nodecomment module has gone from something that was kind of sketchy to something that is *really* useful!

Status: Fixed » Closed (fixed)
Issue tags: -DruBB

Automatically closed -- issue fixed for 2 weeks with no activity.