Dolphin 7.1 new Alerts
We have introduced new Alerts in Dolphin 7.1 to make it easier to override some functionality or just do something custom when some system event occurs.
1. Form Alerts
Form alerts allows to add/change/delete custom fields to any form which is based on Forms engine.
form - init: form initialization, use it to add/change/delete fields in the form.
form - init_checker: form checking, use it to custom fields validation.
form - insert_data: form is submitted and new data is inserted into database, use it to insert/update custom data.
form - update_data: form is submitted and new data is updated in database, use it to update custom data.
2. Page Builder Alerts
Page Builder alerts allows to add custom fields to the form in page builder popup.
page_builder - block_form_display: block form displaying, use it to add custom fields to the block edit popup form.
page_builder - block_form_save: block form saving, use it to update custom data upon block form saving.
3. Modules Operations Alerts
Module operation alerts allows to execute custom code upon module install/uninstall/recompile.
module - install: module is installed.
module - uninstall: module is uninstalled.
module - recompile: module language file is recompiled.
4. Social Sharing Alerts
You can override displaying of social sharing block, by some custom one.
system - social_sharing_display: displaying if social sharing block.
5. Video/Sounds Alerts
These Alerts are for displaying and converting video and Sounds.
They can be used to add conversion to additional format and/or override displaying of Video and Sound player.
You can get example of this usage in default Boonex module - HTML5 Audio/Video Player.