function delete($id) { if ($id) { $hilight = new Hilight($id); $hilight->delete(); set_notify('success', lang('delete_data_complete')); } redirect($_SERVER['HTTP_REFERER']); }
public function delete($id) { if ($id) { $data = new Hilight($id); $action = 'DELETE'; save_logs($this->menu_id, $action, @$data->id, $action . ' ' . $data->org_name . ' Organizations '); $data->delete(); } redirect("admin/organizations"); }
public function delete($id) { if ($this->perm->can_delete == 'y') { if ($id) { $data = new Hilight($id); $action = 'DELETE'; save_logs($this->menu_id, $action, $data->id, $action . ' Hilights '); $data->delete(); } } redirect("admin/hilights"); }