original_string: protected function validateEditSettings()
      {
          $this->setSubmitted('settings');
  
          if (!$this->getSubmitted('cron_key')) {
              $this->setSubmitted('cron_key', gplcart_string_random());
          }
  
          return !$this->hasErrors();
      }
code: protected function validateEditSettings()
      {
          $this->setSubmitted('settings');
  
          if (!$this->getSubmitted('cron_key')) {
              $this->setSubmitted('cron_key', gplcart_string_random());
          }
  
          return !$this->hasErrors();
      }
code_tokens: protected function validateEditSettings ( ) { $ this -> setSubmitted ( 'settings' ) ; if ( ! $ this -> getSubmitted ( 'cron_key' ) ) { $ this -> setSubmitted ( 'cron_key' , gplcart_string_random ( ) ) ; } return ! $ this -> hasErrors ( ) ; }
docstring: Validates submitted settings
  @return bool
docstring_tokens: Validates submitted settings