Our custom Textmate Bundle (the rocking Mac OS X text editing tool) that we use in house to ease our typing during development. The bundle includes a number of tab trigger snippets. We know that it isn't complete with every hook, but we've just made them for the hooks we use most often. In future releases we will make be adding new shortcuts and as we do more Drupal 6 development we will be sure to release an updated version for 6.x!
More information about Textmate and Textmate Bundles.
Installation and Screencast
Download the attachment. Unzip the file. Double click the .tmbundle file and Textmate will take care of the rest. Next time you open up Textmate try out some of the tab triggers. NOTE: be sure to set the language type to HTML or PHP as shown in the screencast.
Drupal Helpers Textmate Bundle Screencast
Bundle Contents
| Name | Tab Trigger |
|---|---|
| Hooks | |
| hook_block: Implementation of hook_block | hook_block |
| hook_comment: Implementation of hook_comment | hook_comment |
| hook_form_alter: Implementation of hook_form_alter | hook_form_alter |
| hook_menu: Implementation of hook_menu | hook_menu |
| hook_node_type: Implementation of hook_node_type | hook_node_type |
| hook_nodeapi: Implementation of hook_nodeapi | hook_nodeapi |
| hook_perm: Implementation of hook_perm | hook_perm |
| hook_user: Implementation of hook_user | hook_user |
| Function Short Cuts | |
| drupal_set_message: Prints a message to drupal's messaging system. | dsm |
| variable_del: Delete's a variable stored in Drupal's variable table. | vdel |
| variable_get: Retrieves a variable stored in Drupal's variable table. | vget |
| variable_set: Sets a variable stored in Drupal's variable table. | vset |
| Stub Array Items | |
| form: Creates a stub form array making it faster to type form_api elements. | form |
| menu: Creates a stub menu item array making it faster to type hook_menu menu items. | menu |
| Attachment | Size |
|---|---|
| Drupal Helpers 5_x.tmbundle.zip | 10.4 KB |







Post new comment