The first thing you will notice is how everything is broken into 'stages'.
In total, there are 5 stages:
- edit - A user is creating or editing a gars thread (first post)
- persist - A user is saving a gars thread (first post)
- display - A user is viewing a gars thread
- settings - An admin is viewing the settings for the module
- persistsettings - The admin is saving the settings.
In this example, we are skipping the last 2 for simplicity (I am hoping to expand on this simple module in another tutorial to include these stages later).