Experiences & Knowledge Shared
Palette components for creating Drupal hooks
Extending the existing NetBeans plugin support for Drupal 6.x, we implemented and released palette components for assisting creation of Drupal hooks, both library and user-defined ones. The plugin has been released at Project homepage as well as NetBeans Plugins Portal page. The usage of component has well been documented over here and has been uploaded on project homepage too
In short about the palette components, we provide the following support :1. For the PHP files,
2. For creating a Drupal 6.x library hook (like block, filter, access, install, etc.), we need to drag onto editor/double click on the component, select the desired hook and click ok. The corresponding code with suitable parameters gets generated. All this has been captured in the screenshot below :
3. For creating a user-defined hook, we need to drag onto editor/double click on the component, enter the name of hook and its description and click ok. The code with suitable comments gets generated. All this has been captured in the screenshot below :
4. You can also configure the display of the components in the palette by modifying the settings. Go to Tools → Palette → PHP Code Clips in the NetBeans IDE. Now, expand the Drupal Hooks section and modify the settings for the components according to your choice. The screenshot below captures the configuration settings window.
Thus, without caring much about hook templates, the developers can directly jump over to implementation part of function.
Posted at 10:07AM Nov 11, 2008 by Sujit Nair in Sun | Comments[0]
Today's Page Hits: 19