/** * Remove/delete a Notebook entry */ public function remove() { if (!$this->is_allowed_to_edit()) { $this->forbidden(); return; } $item = Request::get_item_key(); $success = Notebook::repository()->remove($item); $message = $success ? '' : get_lang('Error'); $this->response($success, $message); }