Ejemplo n.º 1
0
 function delete($id = FALSE)
 {
     if ($id) {
         $alert = new blogcomment_alert();
         $alert->get_by_blogcomment_id($id);
         $alert->delete_all();
         $comment = new blogcomment($id);
         $comment->delete();
         set_notify('success', lang('delete_data_complete'));
     }
     redirect('blogs/admin/blogs');
 }