What is Drupal Code Search?

Drupal Code Search is a search engine for Drupal code. It's a great way to learn how specific Drupal functions are being used in other modules or themes. Now you can quickly find real life examples for functions and hooks that might not be documented anywhere else. You can even filter results by Drupal version or programming language.

Note: This site is in beta and very experimental!

What is Drupal?

Drupal is a content management system used by thousands of websites and online communities.

What are Regular Expressions?

Drupal Code Search allows you to search with regular expressions, a powerful pattern matching language. Regular expressions let you search for character ranges, wildcards, and other patterns. Check the Wikipedia entry for more info.

Is this site part of Drupal.org?

No, this site is 100% unofficial, and not affiliated with the Drupal Association or Dries Buytaert.

Who made this site?

I did. My name is John. I'm a programmer and web designer from Ottawa, Canada. I run a number of Drupal sites, including Blamcast and Drupal Modules. I'm also a member of the Drupal Association.

How can I get in touch with you?

My email is my first name at blamcast.net. I'd be glad to hear your suggestions, comments, and bug reports!

How do you get the search results?

Results are retrieved using Google's Code Search Data API. Google indexes the code directly from Drupal's FTP site.

Why do I occasionally get a "Content not found" error?

This is a known bug in Google's Code Search service.

Why are there so few results for Drupal 6?

Google's Code Search service is somewhat slow to update. This means a lot of new code from Drupal 6 has not been indexed yet.