load_config(); } else { $config->load_default_config(); } $config->save_config(); $this->installed = true; } /** * plugin activation * * this function is triggered after installation, by manual activation * or after a plugin update * for this last case you must manage updates tasks of your plugin in this function */ function activate($plugin_version, &$errors=array()) { if (!$this->installed) { $this->install($plugin_version, $errors); } } function deactivate() { } function uninstall() { } }