/** * Löscht eine CollectionRole. */ public function deleteAction() { try { $collectionRoleModel = new Admin_Model_CollectionRole($this->getRequest()->getParam('roleid', '')); $collectionRoleModel->delete(); $collectionRoleModel->getObject()->getDisplayName(); $message = $this->view->translate('admin_collectionroles_delete', $collectionRoleModel->getObject()->getName()); return $this->_redirectTo('index', $message); } catch (Application_Exception $e) { return $this->_redirectToAndExit('index', array('failure' => $e->getMessage())); } }