/** * delete user generated content associated with an admin field * when the admin field is deleted from the "Fields" page */ function delete_content($recordid = 0) { if ($this->subfield) { return $this->subfield->delete_content($recordid); } else { return parent::delete_content($recordid); } }