I had a need on a recent project to add a few settings for multisite administrators. Rather than running to Google or the Codex, I decided to just dig into core. It actually took me less time than I thought it would and was surprisingly simple. Here’s a basic example of how I added, sanitized and saved network-wide settings. There’s a lot of boilerplate, scroll down to Lines 41-96 for the important bits.