Web Threads » Development » Drupal Query to Disable Comments on Node by Content Type
Drupal Query to Disable Comments on Node by Content Type
A handy drupal snippet, when someone’s added hundreds of nodes with comments allowed and you need to bulk disable them without editing them each by hand.
UPDATE drup_node SET `comment`=0 WHERE type='review';
Modify as needed with the correct drupal node table name for your installation, and set the type= to whatever the type you’d like to update.
Filed under: Development · Tags: code snippet, drupal, mysql




Like









