mirror of
https://github.com/friendica/friendica
synced 2024-06-23 21:39:26 +02:00
11 lines
180 B
JavaScript
11 lines
180 B
JavaScript
|
var addon_hooks={};
|
||
|
|
||
|
function Addon_registerHook( type, hookfnstr )
|
||
|
{
|
||
|
if (!addon_hooks.hasOwnProperty(type)) {
|
||
|
addon_hooks[type]=[];
|
||
|
}
|
||
|
|
||
|
addon_hooks[type].push( hookfnstr );
|
||
|
}
|