function apply_config_to_blog($blogid)
 {
     syslog(LOG_ERR, "applying config to blog with id {$blogid}");
     if (!is_multisite()) {
         return;
     }
     wp_cache_flush();
     $plugin_s4wp_settings = solr_options();
     switch_to_blog($blogid);
     wp_cache_flush();
     s4wp_update_option($plugin_s4wp_settings);
     restore_current_blog();
     wp_cache_flush();
 }
                foreach ($s_value as $key => $v) {
                    //lets rename the array_keys
                    if (!$v['host']) {
                        unset($s_value[$key]);
                    }
                }
                break;
        }
        if (!is_array($value)) {
            $value = trim($value);
        }
        $value = stripslashes_deep($value);
        $s4wp_settings[$option] = $value;
    }
    //lets save our options array
    s4wp_update_option($s4wp_settings);
    //we need to make call for the options again
    //as we need them to come out in an a sanitised format
    //otherwise fields that need to run s4wp_filter_list2str will come up with nothin
    $s4wp_settings = s4wp_get_option('plugin_s4wp_settings');
    ?>
  <div id="message" class="updated fade"><p><strong><?php 
    _e('Success!', 'solr4wp');
    ?>
</strong></p></div>
  <?php 
}
# checks if we need to check the checkbox
function s4wp_checkCheckbox($fieldValue)
{
    if ($fieldValue == '1') {