function plugin_news_uninstall() { if (!PluginNewsAlert::dropTable() || !PluginNewsProfile::dropTable()) { Session::addMessageAfterRedirect('Uninstallation failed'); return false; } PluginNewsProfile::uninstallProfile(); return true; }