lukejanicke/respite — pull request #1 by nickohrn (2014-03-11 17:39:07+00:00)
Title: Added ability to reset settings

I added a third parameter to register_setting which specifies a sanitization callback. In the sanitization callback, I check to see if the user clicked the reset button (which I added to the form) and, if so, just return the default settings. Otherwise, the sanitization callback return the submitted settings without change.