allow apps to load additional scripts on the user settings page via the event dispatcher

This commit is contained in:
Jörn Friedrich Dreyer 2016-01-14 16:57:33 +01:00
parent 8f89e3520d
commit 2d1b9a5f9f
1 changed files with 2 additions and 0 deletions

View File

@ -103,6 +103,8 @@ $defaultQuota=$config->getAppValue('files', 'default_quota', 'none');
$defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false $defaultQuotaIsUserDefined=array_search($defaultQuota, $quotaPreset)===false
&& array_search($defaultQuota, array('none', 'default'))===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 = new OC_Template("settings", "users/main", "user");
$tmpl->assign('groups', $groups); $tmpl->assign('groups', $groups);
$tmpl->assign('sortGroups', $sortGroupsBy); $tmpl->assign('sortGroups', $sortGroupsBy);