Allow apps to add/modify config js output via hook.

This commit is contained in:
ringmaster 2014-02-20 18:13:27 -05:00
parent 917a505af4
commit 58be2eb955
1 changed files with 6 additions and 3 deletions

View File

@ -64,6 +64,9 @@ $array = array(
)
);
// Allow hooks to modify the output values
OC_Hook::emit('\OCP\Config', 'js', array('array' => &$array));
// Echo it
foreach ($array as $setting => $value) {
echo("var ". $setting ."=".$value.";\n");