owncloud/core — pull request #7344 by ringmaster (2014-02-20 23:21:45+00:00)
Title: Allow apps to add/modify config js output via hook.

This will allow apps to output some dynamic data in javascript that their static javscript files can act upon.

-------

To use, connect the hook to a class method in the app in app.php:

```php
OC_Hook::connect('\OCP\Config', 'js', '\OCA\Testapp\Testapp', 'getJs');
```

Then implement the connected method in the specified app class:

```php