protected function validateEditSettings()
    {
        $this->setSubmitted('settings');

        if (!$this->getSubmitted('cron_key')) {
            $this->setSubmitted('cron_key', gplcart_string_random());
        }

        return !$this->hasErrors();
    }
protected function validateEditSettings()
    {
        $this->setSubmitted('settings');

        if (!$this->getSubmitted('cron_key')) {
            $this->setSubmitted('cron_key', gplcart_string_random());
        }

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