original_string: public function write_setting($data) {
          $data = $this->validate($data);
          if ($data === false) {
              return  get_string('validateerror', 'admin');
          }
          return ($this->config_write($this->name, $data) ? '' : get_string('errorsetting', 'admin'));
      }
code: public function write_setting($data) {
          $data = $this->validate($data);
          if ($data === false) {
              return  get_string('validateerror', 'admin');
          }
          return ($this->config_write($this->name, $data) ? '' : get_string('errorsetting', 'admin'));
      }
code_tokens: public function write_setting ( $ data ) { $ data = $ this -> validate ( $ data ) ; if ( $ data === false ) { return get_string ( 'validateerror' , 'admin' ) ; } return ( $ this -> config_write ( $ this -> name , $ data ) ? '' : get_string ( 'errorsetting' , 'admin' ) ) ; }
docstring: Saves the setting
  
  @param string $data
  @return bool
docstring_tokens: Saves the setting