How can I add a button to my plug-in settings that runs a code to reset a part of the database once clicked?
(:
Settings button to reset database
|
How can I add a button to my plug-in settings that runs a code to reset a part of the database once clicked?
(:
2015-12-16, 10:50 PM
(This post was last modified: 2015-12-16, 10:52 PM by Destroy666.)
Why would you reset a DB part after pressing a button in settings? That defeats the purpose of a setting, because you don't set any value, you just do an action immediately. Instead you should rather add that either to the plugin's description or on a separate subpage. Example in one of my plugins:
https://github.com/Destroy666x/MyBB-Stor...hp#L38-L45 https://github.com/Destroy666x/MyBB-Stor...#L117-L159 |
« Next Oldest | Next Newest »
|