/** * Deletes an element from db / displays the warning-box * * @throws class_exception * @return string, "" in case of success * @permissions right1 */ protected function actionDeleteElement() { $strReturn = ""; $objElement = new class_module_pages_element($this->getParam("elementid")); if (!$objElement->deleteObject()) { throw new class_exception($this->getLang("element_loeschen_fehler"), class_exception::$level_ERROR); } $this->flushCompletePagesCache(); $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"), "listElements")); return $strReturn; }