File: D:/web/itpartnership.net (cms)/modules/FeedbackForm/method.uninstall.php
<?php
#-------------------------------------------------------------------------
# Module: Feedback Form
# Version: 0.9.12, released 6 March 2006
#
# Copyright (c) 2006, Samuel Goldstein <sjg@cmsmodules.com>
# For Information, Support, Bug Reports, etc, please visit the
# CMS Made Simple tracker at http://dev.cmsmadesimple.org
#
#-------------------------------------------------------------------------
# CMS - CMS Made Simple is (c) 2006 by Ted Kulp (wishy@cmsmadesimple.org)
# This project's homepage is: http://www.cmsmadesimple.org
#
#-------------------------------------------------------------------------
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# Or read it online: http://www.gnu.org/licenses/licenses.html#GPL
#
#-------------------------------------------------------------------------
$this->initialize();
$db = $this->cms->db;
$dict = NewDataDictionary($db);
$sqlarray = $dict->DropTableSQL($this->form_table_name);
$dict->ExecuteSQLArray($sqlarray);
$db->DropSequence($this->form_table_name."_seq");
$sqlarray = $dict->DropTableSQL($this->field_table_name);
$dict->ExecuteSQLArray($sqlarray);
$db->DropSequence($this->field_table_name."_seq");
$sqlarray = $dict->DropTableSQL($this->option_table_name);
$dict->ExecuteSQLArray($sqlarray);
$db->DropSequence($this->option_table_name."_seq");
$sqlarray = $dict->DropTableSQL($this->config_table_name);
$dict->ExecuteSQLArray($sqlarray);
$sqlarray = $dict->DropTableSQL($this->flock_table_name);
$dict->ExecuteSQLArray($sqlarray);
$this->RemovePermission('Modify Feedback Forms', 'Modify Feedback Forms');
$this->Audit( 0, $this->Lang('friendlyname'), $this->Lang('uninstalled'));
# vim:ts=4 sw=4 noet
?>