function doAjaxDelete() { $id = am4Request::getInt('id'); $errors = $this->getOptions(); $errors->delete($id)->save(); }
function doAjaxDelete() { $id = am4Request::getInt('id'); $options = $this->getOptions(); unset($options[$id]); update_option(AM4_ERROR_OPTION, $options); }