<p>Take a loot at the <strong>prepSettings()</strong> function of your plugin.</p>

<p><a href="http://buildwithcraft.com/docs/plugins/plugin-settings" rel="nofollow">http://buildwithcraft.com/docs/plugins/plugin-settings</a></p>

CC BY-SA 3.0
2015-02-02T15:32:21.650Z
2015-02-02T15:32:21.650Z
naboovalley
<p>I'm attempting to create a plugin that is going to create some basic fields/sections as a post-installation setup. I don't really want to create a full-blown CP entry so is there any way of just doing stuff when the user clicks "save" in the settings template? </p>

<plugin-development>
Is there any way to hook into saving a plugins settings?
# Is there any way to hook into saving a plugins settings?

(Asked by: username_0 on 2015-02-02)

I'm attempting to create a plugin that is going to create some basic fields/sections as a post-installation setup. I don't really want to create a full-blown CP entry so is there any way of just doing stuff when the user clicks "save" in the settings template?

**Tags:** plugin-development

---

## 1 answers

### Answer by username_1 on 2015-02-02. Score: 3 | Accepted answer

Take a loot at the **prepSettings()** function of your plugin.

<http://buildwithcraft.com/docs/plugins/plugin-settings>


---

