Setting up a keyword shortcut search engine for searching the Drupal API

 If you are developing modules in Drupal then http://api.drupal.org and Pro Drupal Development will be your two good friends. One way to speed up your use of api.drupal.org is to set up keyword shortcuts to the search used on that site. This can be done easily in both Firefox and Chrome by following a few simple steps. 


In Chrome:

  1. Right click the address bar (you know the one where you type web site addresses into) and choose  'Edit search engines' 
  2. Select 'Add'
  3. Type any name you like in the Name box.
  4. Give it any keyword you like. I use the letter d.
  5. Enter this URL: http://api.drupal.org/api/search/6/%s
  6. Now, whenever you want to search the Drupal API, just type your keyword in the address bar followed by your search term (e.g., d hook_block)

*Update: A Google Chrome extension has been written which allows for easy install of the same feature as above using a button instead.

In Firefox: 

  1. Go to http://api.drupal.org
  2. Right-click in the search box in the upper left corner.
  3. Choose 'Add a keyword for this search'
  4. Type any name you like in the Name box.
  5. Give it any keyword you like. I use the letter d.
  6. Now, whenever you want to search the Drupal API, just type your keyword in the address bar followed by your search term (e.g., d hook_block)

Comment using an existing account (Google, Twitter, etc.)