Recent Comments

Change Amount of 'Recent Comments' in Drupal

I was setting up the new 'Recent Comments' block on the front page today. It was initially showing 10 comments, the default Drupal amount, but this was too much it was just cluttering. So I found a way to change the default number, it's a bit messy but it works. Here's how to do it:

Open the comment.module file, located in the modules folder in your drupal home directory. In your text editor around line 300 you will see a line that reads

function comment_get_recent($number = 10)