]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow apps to load additional scripts on the user settings page via the event dispatcher
authorJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 14 Jan 2016 15:57:33 +0000 (16:57 +0100)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Thu, 14 Jan 2016 15:57:33 +0000 (16:57 +0100)
settings/users.php

index 81f6ed4335cae8704685a0412fa624b2ac788c3e..9d89ff65b4a3280d9c4d0bee7eccb842b019034d 100644 (file)
@@ -103,6 +103,8 @@ $defaultQuota=$config->getAppValue('files', 'default_quota', 'none');
 $defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false
        && array_search($defaultQuota, array('none', 'default'))===false;
 
+\OC::$server->getEventDispatcher()->dispatch('OC\Settings\Users::loadAdditionalScripts');
+
 $tmpl = new OC_Template("settings", "users/main", "user");
 $tmpl->assign('groups', $groups);
 $tmpl->assign('sortGroups', $sortGroupsBy);