Modules often need a way to have multiple options available for customization. That way, a single module can be used in different ways on different websites, and a site administrator can configure the module to suit their needs without having to modify the module's code.
To have such options, it would be an advantage if there were a standard approach to setting and retrieving persistent preference settings. Not surprisingly, the CMS Made Simple module API provides just that standard. This recipe gives an example of using that API, and wraps it into a form that allows the site administrator to update the preference.