Blocking inappropriate usernames

Submitted by Barrett on Thu, 10/23/2008 - 08:26

A question came up in one of the forum posts on drupal.org about a module to prevent inappropriate usernames.  A couple options were discussed, including using access rules and the abuse module.  Mostly as a learning exercise, I decided to try my hand at writing a module to handle the issue. The code I came up works with Drupal 5.x and uses the validate operation of hook_user to check for inappropriate names and return an error.

Tags