original_string: public function write_setting($data) {
          if (!is_array($data)) {
              return '';
          }
  
          $seconds = (int)($data['v']*$data['u']);
          if ($seconds < 0) {
              return get_string('errorsetting', 'admin');
          }
  
          $result = $this->config_write($this->name, $seconds);
          return ($result ? '' : get_string('errorsetting', 'admin'));
      }
code: public function write_setting($data) {
          if (!is_array($data)) {
              return '';
          }
  
          $seconds = (int)($data['v']*$data['u']);
          if ($seconds < 0) {
              return get_string('errorsetting', 'admin');
          }
  
          $result = $this->config_write($this->name, $seconds);
          return ($result ? '' : get_string('errorsetting', 'admin'));
      }
code_tokens: public function write_setting ( $ data ) { if ( ! is_array ( $ data ) ) { return '' ; } $ seconds = ( int ) ( $ data [ 'v' ] * $ data [ 'u' ] ) ; if ( $ seconds < 0 ) { return get_string ( 'errorsetting' , 'admin' ) ; } $ result = $ this -> config_write ( $ this -> name , $ seconds ) ; return ( $ result ? '' : get_string ( 'errorsetting' , 'admin' ) ) ; }
docstring: Store the duration as seconds.
  
  @param array $data Must be form 'h'=>xx, 'm'=>xx
  @return bool true if success, false if not
docstring_tokens: Store the duration as seconds .