/** * Uninstall an instance */ public function delete($event_name, $data) { global $app, $conf; if (!isset($data['new']['id'])) { return false; } $instanceid = $data['new']['id']; if ($data['new']['instance_status'] == INSTANCE_REMOVE) { $aps = new ApsInstaller($app); $aps->installHandler($instanceid, 'install'); } }