Javascript
Since the HumHub user interface is highly based on Javascript, some changes may require the alignment of a Javascript module.
You can intercept the installation of a module by means of the following events:
humhub:beforeInitModulehumhub:afterInitModulehumhub:modules:<module_id>:beforeInithumhub:modules:<module_id>:afterInithumhub:ready
The following example shows how to overwrite an exported Javascript module function:
humhub.module('mytheme', function(module, require, $) {
var event = require('event');
event.on('humhub:ready', function() {
var status = require('ui.status');
status.info = function() {
// Some logic...
}
});
});