]> source.dussan.org Git - nextcloud-server.git/commitdiff
add post_enable hook if a app gets enabled
authorBjoern Schiessle <schiessle@owncloud.com>
Tue, 22 Oct 2013 14:15:19 +0000 (16:15 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Tue, 22 Oct 2013 14:15:19 +0000 (16:15 +0200)
lib/private/app.php

index 6f45b6e6dd7218baecddbf02f4ece5eb294e21d4..eca40a81cc14c9e9576fdcc958ace8143598b74a 100644 (file)
@@ -249,6 +249,7 @@ class OC_App{
                                if(isset($appdata['id'])) {
                                        OC_Appconfig::setValue( $app, 'ocsid', $appdata['id'] );
                                }
+                               \OC_Hook::emit('OC_App', 'post_enable', array('app' => $app));
                        }
                }else{
                        throw new \Exception($l->t("No app name specified"));