/** * Delete a field completely */ public function delete() { // Delete the comments. $params = array('contextid' => $this->df->context->id, 'commentarea' => $this->name); comment::delete_comments($params); return parent::delete(); }