function delete($id = FALSE) { if ($id) { $information = new Information($id); $information->delete(); set_notify('success', lang('delete_data_complete')); } redirect($_SERVER['HTTP_REFERER']); }