original_string: public static function save_site_info($formdata) {
          $cleanhuburl = clean_param(HUB_MOODLEORGHUBURL, PARAM_ALPHANUMEXT);
          foreach (self::FORM_FIELDS as $field) {
              set_config('site_' . $field . '_' . $cleanhuburl, $formdata->$field, 'hub');
          }
          // Even if the the connection with moodle.net fails, admin has manually submitted the form which means they don't need
          // to be redirected to the site registration page any more.
          set_config('site_regupdateversion_' . $cleanhuburl, max(array_keys(self::CONFIRM_NEW_FIELDS)), 'hub');
      }
code: public static function save_site_info($formdata) {
          $cleanhuburl = clean_param(HUB_MOODLEORGHUBURL, PARAM_ALPHANUMEXT);
          foreach (self::FORM_FIELDS as $field) {
              set_config('site_' . $field . '_' . $cleanhuburl, $formdata->$field, 'hub');
          }
          // Even if the the connection with moodle.net fails, admin has manually submitted the form which means they don't need
          // to be redirected to the site registration page any more.
          set_config('site_regupdateversion_' . $cleanhuburl, max(array_keys(self::CONFIRM_NEW_FIELDS)), 'hub');
      }
code_tokens: public static function save_site_info ( $ formdata ) { $ cleanhuburl = clean_param ( HUB_MOODLEORGHUBURL , PARAM_ALPHANUMEXT ) ; foreach ( self :: FORM_FIELDS as $ field ) { set_config ( 'site_' . $ field . '_' . $ cleanhuburl , $ formdata -> $ field , 'hub' ) ; } // Even if the the connection with moodle.net fails, admin has manually submitted the form which means they don't need // to be redirected to the site registration page any more. set_config ( 'site_regupdateversion_' . $ cleanhuburl , max ( array_keys ( self :: CONFIRM_NEW_FIELDS ) ) , 'hub' ) ; }
docstring: Save registration info locally so it can be retrieved when registration needs to be updated
  
  @param stdClass $formdata data from {@link site_registration_form}
docstring_tokens: Save registration info locally so it can be retrieved when registration needs to be updated