diff --git a/application/forms/DeleteConfigForm.php b/application/forms/DeleteConfigForm.php deleted file mode 100644 index 02f5dc4..0000000 --- a/application/forms/DeleteConfigForm.php +++ /dev/null @@ -1,46 +0,0 @@ -addHidden('name'); - $this->addElement('submit', $this->translate('Delete this process')); - } - - public function setStorage($storage) - { - $this->storage = $storage; - return $this; - } - - public function setController($controller) - { - $this->controller = $controller; - return $this; - } - - public function setBpConfig($bp) - { - $this->getElement('name')->setValue($bp->getName()); - return $this; - } - - public function onSuccess() - { - $name = $this->getValue('name'); - $this->storage->deleteProcess($name); - $this->setRedirectUrl('businessprocess'); - Notification::success(sprintf('Process %s has been deleted', $name)); - } -}