function com_uninstall() { $uninstall = false; // makes it easier if folks want to really uninstall if ($uninstall) { require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'civicrm.settings.php'; require_once 'CRM/Core/Config.php'; $config =& CRM_Core_Config::singleton(); require_once 'CRM/Core/DAO.php'; CRM_Core_DAO::dropAllTables(); echo "You have uninstalled CiviCRM. All CiviCRM related tables have been dropped from the database."; } else { echo "You have uninstalled CiviCRM."; } }
function uninstall($parent) { $uninstall = FALSE; // makes it easier if folks want to really uninstall if ($uninstall) { define('CIVICRM_SETTINGS_PATH', dirname(__FILE__) . DIRECTORY_SEPARATOR . 'civicrm.settings.php'); require_once CIVICRM_SETTINGS_PATH; require_once 'CRM/Core/Config.php'; $config = CRM_Core_Config::singleton(); require_once 'CRM/Core/DAO.php'; CRM_Core_DAO::dropAllTables(); echo "You have uninstalled CiviCRM. All CiviCRM related tables have been dropped from the database."; } else { echo "You have uninstalled CiviCRM."; } }