tbrehm
2012-06-07 84b8c17c925953d968d89787d10b05f9b54fbf22
server/plugins-available/aps_plugin.inc.php
@@ -57,7 +57,7 @@
        global $app;
        
        // Register the available events
        $app->plugins->registerEvent('aps_instance_install', $this->plugin_name, 'install');
        $app->plugins->registerEvent('aps_instance_insert', $this->plugin_name, 'install');
        $app->plugins->registerEvent('aps_instance_update', $this->plugin_name, 'install');
        $app->plugins->registerEvent('aps_instance_delete', $this->plugin_name, 'delete');
    }
@@ -78,6 +78,12 @@
         $app->log("Running installHandler",LOGLEVEL_DEBUG);
         $aps->installHandler($instanceid, 'install');
      }
      if($data['new']['instance_status'] == INSTANCE_REMOVE) {
         $aps = new ApsInstaller($app);
         $app->log("Running installHandler",LOGLEVEL_DEBUG);
         $aps->installHandler($instanceid, 'delete');
      }
    }
    
    /**