Adding E-Alerts Support to a Module

How to integrate Exponent Email Alerts into a module.  As you’ll see it’s not difficult to add E-Alerts support to a module. 

1. Ensure that ‘ealerts’ is NOT in the $remove_configs array of the controller.  Otherwise, the E-Alerts configuration will NOT be available and therefore cannot be activated.

2. Add the following to the  bottom of the main tab in the ‘edit’ template:

{if $config.enable_ealerts}
    {control type="checkbox" name="send_ealerts" label="Send E-Alert?"|gettext value=1}

3. Finally, add a ‘subscribe’ link to all of the show/showall type templates, usually just below the title/module_description.

Loading Help