installed = true; } function activate($plugin_version, &$errors=array()) { if (!$this->installed) { $this->install($plugin_version, $errors); } } function deactivate() { } function uninstall() { global $prefixeTable; // delete table pwg_query('DROP TABLE `'. $prefixeTable .'mps_conf`;'); pwg_query('DROP TABLE `'. $prefixeTable .'mps_product`;'); pwg_query('DROP TABLE `'. $prefixeTable .'mps_prod_img`;'); pwg_query('DROP TABLE `'. $prefixeTable .'mps_option`;'); pwg_query('DROP TABLE `'. $prefixeTable .'mps_opt_val`;'); pwg_query('DROP TABLE `'. $prefixeTable .'mps_prod_opt`;'); } }