MDL-24157, remove instance_delete function block, it is supposed to used to display comments only
This commit is contained in:
@@ -55,10 +55,4 @@ class block_comments extends block_base {
|
||||
$this->content->footer = '';
|
||||
return $this->content;
|
||||
}
|
||||
function instance_delete() {
|
||||
global $DB, $PAGE;
|
||||
//delete orphan records
|
||||
$DB->delete_records('comments', array('contextid'=>$PAGE->context->id, 'commentarea'=>'page_comments', 'itemid'=>0));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user