/** * Removes a single widget * * @permissions delete * @return string */ protected function actionDeleteWidget() { $objWidget = new class_module_dashboard_widget($this->getSystemid()); $strName = $objWidget->getStrDisplayName(); $objWidget->deleteObject(); return "<message>" . $this->getLang("deleteWidgetSuccess", array($strName)) . "</message>"; }
/** * Deletes a widget from the dashboard * * @throws class_exception * @return string "" in case of success * @permissions delete */ protected function actionDeleteWidget() { $strReturn = ""; $objDashboardwidget = new class_module_dashboard_widget($this->getSystemid()); if (!$objDashboardwidget->deleteObject()) { throw new class_exception("Error deleting widget", class_exception::$level_ERROR); } $this->adminReload(class_link::getLinkAdminHref($this->getArrModule("modul"))); return $strReturn; }