installed = true; } function activate($plugin_version, &$errors=array()) { if (!$this->installed) { $this->install($plugin_version, $errors); } } function update($old_version, $new_version, &$errors=array()) { $this->install($new_version, $errors); } function deactivate() { } function uninstall() { pwg_query('ALTER TABLE '.CATEGORIES_TABLE.' DROP COLUMN downloadable;'); } }