Allow apps to add/modify config js output via hook.
This commit is contained in:
parent
917a505af4
commit
58be2eb955
|
@ -62,7 +62,10 @@ $array = array(
|
||||||
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true)
|
'session_keepalive' => \OCP\Config::getSystemValue('session_keepalive', true)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Allow hooks to modify the output values
|
||||||
|
OC_Hook::emit('\OCP\Config', 'js', array('array' => &$array));
|
||||||
|
|
||||||
// Echo it
|
// Echo it
|
||||||
foreach ($array as $setting => $value) {
|
foreach ($array as $setting => $value) {
|
||||||
|
|
Loading…
Reference in New Issue