original_string: public function save_changes($data) {
          $data = (array) $data;
          unset($data['filter']);
          unset($data['contextid']);
          foreach ($data as $name => $value) {
              if ($value !== '') {
                  filter_set_local_config($this->filter, $this->context->id, $name, $value);
              } else {
                  filter_unset_local_config($this->filter, $this->context->id, $name);
              }
          }
      }
code: public function save_changes($data) {
          $data = (array) $data;
          unset($data['filter']);
          unset($data['contextid']);
          foreach ($data as $name => $value) {
              if ($value !== '') {
                  filter_set_local_config($this->filter, $this->context->id, $name, $value);
              } else {
                  filter_unset_local_config($this->filter, $this->context->id, $name);
              }
          }
      }
code_tokens: public function save_changes ( $ data ) { $ data = ( array ) $ data ; unset ( $ data [ 'filter' ] ) ; unset ( $ data [ 'contextid' ] ) ; foreach ( $ data as $ name => $ value ) { if ( $ value !== '' ) { filter_set_local_config ( $ this -> filter , $ this -> context -> id , $ name , $ value ) ; } else { filter_unset_local_config ( $ this -> filter , $ this -> context -> id , $ name ) ; } } }
docstring: Override this method to save the settings to the database. The default
  implementation will probably be sufficient for most simple cases.
  @param object $data the form data that was submitted.
docstring_tokens: Override this method to save the settings to the database . The default implementation will probably be sufficient for most simple cases .