Drupal Specific Snippets in Komodo 4.3 Beta
I recently made the switch from Zend Studio to Komodo as my IDE (Integrated Development Environment).
While browsing the community site I stumbled upon a this forum thread discussing Drupal as the engine behind the community site. After I joined that conversation JeffG pointed out that Komodo 4.3 Beta actually has a couple of "snippets" in the default Komodo "toolbox" that are Drupal specific.
From the Komodo Help file:
Snippets are frequently used strings that can be quickly inserted into the current document. For example, repetitive sections of code or standard comments can be stored within a snippet. Snippets have advanced properties; they support the use of Tab Stops and Interpolation Shortcuts, can be assigned to Key Bindings, and allow for the specification of indentation context and cursor position.
There are only a handful of snippets provided and they aren't nearly full featured, but they are useful nonetheless.
There is a snippet to create a .info file and another to create a .install file.
There is another snippet to create a menu array item.
And finally there is a snippet to create skeleton code for a Drupal Module. The author chose to implement hook_perm, hook_menu, hook_form_alter, and hook_node_api as well provided the beginnings of an admin form function.
(the code is for Drupal 5)
With these snippets you can fire up Komodo and in 4 clicks have a good chunk of a module created.
The bonus is that these snippets are relatively easy to create. I am going to follow up with a quick 'how to' in my next post. Hopefully, there are a few more people interested in creating some more Drupal snippets and developing a more fully featured set of Drupal extensions for Komodo.