protected function processInternal() { // AdminDBEdit pages don't support cancel buttons by default, so // just relocate here. if ($this->ui->getWidget('cancel_button')->hasBeenClicked()) { $this->relocate(); } parent::processInternal(); }
protected function processInternal() { $upload_file_button = $this->ui->getWidget('upload_button'); if ($upload_file_button->hasBeenClicked()) { $this->ui->getWidget('bodytext_field')->display_messages = false; $this->ui->getWidget('publish_field')->display_messages = false; $this->processUploadFile(); } else { parent::processInternal(); } }