Hello,
Current structure allows developers to create one applet per module.
To add an applet, you need to do the following:
- Add 'applet()' method to your module main file
- Add 'applet_caption()' method to your module Common file
- Optionally you can also add 'applet_setttings()' to your module Common file
applet() method should accept 2 arguments:
- $conf - the applet configuration, based on user preferences set through applet_settings
- $opts - applet options, allowing developer to influence some of the applets default functionality
applet_caption() should return a single string - the default caption for the applet
applet_settings() should return array containing variable settings that should be made available to the user through applet configuration
A good example of applet implementation can be found in CRM/Contacts (RecordBrowser based).
Another good example, of slightly more raw module, is CRM/Calendar
This is by no means a complete description of applet functionality, but I hope it clarifies the most important points. If you have any further questions regarding applets, dont hesitate to ask them in this thread.
Kind regards,
Arek