Disable or enable comments for node types en mass

Last modified: September 11, 2009 - 19:19

This snippit allows you to bulk enable or disable comments for nodes through the database.

SQL to disable comments for all nodes of type "story":
UPDATE node SET comment = 0 WHERE type LIKE "story";

comment = 2 would mass enable read/write
comment = 1 would mass enable just read
You can change "story" to "page" or whatever you'd like.

 
 

Drupal is a registered trademark of Dries Buytaert.