Presets, adding to a plugin
e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | Česky | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page
Presets allow the admin to save a template of their form results - so each time they create a new entry their own default settings are used.
To add a preset to your admin config page, enter the following code, replacing the array values with your own.
Before the tag add the following:
So, in the example above, the preset called "admin_downloads" is saved and extracted.
Please note that your form elements must have default values in the form of either