Snippets

How to bulk delete all unapproved comments in Drupal?

Sun, 06/08/2014 - 21:10 -- Sam

Do you have the problem of thousands of spam comments building up on your Drupal site? Ok, the best solution is to check it regularly and delete the unwanted comments, and just leaving the appropriate ones. However, what if you forget to look at your comments for a few days, if you go on holiday for a week and don’t check your blog or your site has been attacked? You can delete these comments manually but this is time consuming (Drupal admin interface only shows you a list of 25 items). This method will allow you to delete all the unapproved comments and leaves the approved ones intact.

Upgrading imagecache presets to Drupal 7 image styles

Sun, 12/30/2012 - 20:46 -- Sam

While doing a Drupal 6 to 7 upgrade for a web project, I was wondering if there was a way to upgrade my imagecache presets to Drupal 7 image styles. Image styles in Drupal 7 are the equivalent of Imagecache presets in Drupal 6.
I found out that you can do it via Features or finding another solution (the one posted by Drupal user Vladimir).

Here's how I migrated my Drupal 6 imagecache presets to D7 image styles.

Subscribe to RSS - Snippets

Tweets

@azridesign on

Azul