In the last section, you learned to create user-defined tags. To execute the PHP code in the tags, you had to place it in the page or the template. With Event Manager, you can execute the code when certain events occur. An event can be the creation of a new page or even deleting a user in the admin console. There are over 50 events already defined in CMS Made Simple, and every module can have additional events.
Examples for executing user-defined tags on events are as follows:
Sending an e-mail to the administrator of the website if any page is updated
Replacing certain parts of the page before displaying it on the website
Deleting associated stylesheets if the template is deleted
CMS Made Simple triggers events such as ContentEditPost or DeleteTemplatePre, when the specified action occurs. You create one or more user-defined tags with custom functionality and assign them to the event. This means that the assigned functionality will be executed when the event is triggered...