public function ajaxDeleteImage($params) { $imageId = (int) $params['entityId']; $this->themeService->deleteImage($imageId); return array('result' => true, 'msg' => OW::getLanguage()->text('admin', 'theme_graphics_delete_success_message'), 'imageId' => $imageId); }
public function deleteImage($params) { $this->themeService->deleteImage((int) $params['image-id']); OW::getFeedback()->info(OW::getLanguage()->text('admin', 'theme_graphics_delete_success_message')); $this->redirectToAction('graphics'); }