Quick Drupal API Reference in Komodo

Komodo provides a solid IDE for Drupal work that constantly surprises me with hidden tidbits of usefulness. One of the latest tricks I've been using provides the ability to perform quick lookups against http://api.drupal.org/ with a simple keyboard command. By default, this functionality is set to lookup functions against php, but because php help presents itself in tooltips I find it useful to redirect searches for Drupal.

In order to accomplish this simply open Komodo's preferences and navigate to Language Help ... Select the php language and set the search string to open http://api.drupal.org/api/function/%W/6.

Now you can type something like hook_nodeapi, highlight the word and press the keyboard sequence in the image above for your platform ... piece of cake and extremely useful.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hi Kevin, Great tip! I was

Hi Kevin,

Great tip! I was thinking it would be nice to be able to connect to the Drupal contrib API as well 9http://api.freestylesystems.co.uk/), but see there's only one entry allowed for the lookup. I also find the "Jump to Definition" context-menu item invaluable for getting more info about a function.

Cheers!
Chris Shattuck

You can use multiple

You can use multiple keyboard commands for different searches. The one I outline in the blog post is tied to the key combo Meta+/ ... you can fill in the second url in the Alternate Help section and use Ctrl+/ to
open it ... the url would be the same format 'open http://drupalcontrib.org/api/function/%W/6' (sorry it redirects to drupalcontrib.org for me)

If you do this then you'd use Meta+/ to view the drupal api docs and Ctrl+/ to view contrib.