public function delete()
{
$allow = true;
$allow = Plugins::filter('comment_delete_allow', $allow, $this);
if (!$allow) {
return false;
}
Plugins::act('comment_delete_before', $this);
// Delete all info records associated with this comment
$this->info->delete_all();
$result = parent::deleteRecord(DB::table('comments'), array('id' => $this->id));
Plugins::act('comment_delete_after', $this);
return $result;
}