* Maintainer: ivan zlax <@zlax@ussr.win> */ use Zotlabs\Lib\Apps; use Zotlabs\Extend\Hook; use Zotlabs\Extend\Route; function link_load() { register_hook('page_end', 'addon/link/link.php', 'link_active'); Route::register('addon/link/Mod_Link.php','link'); } function link_unload() { unregister_hook('page_end', 'addon/link/link.php', 'link_active'); Route::unregister('addon/link/Mod_Link.php','link'); } function link_active(&$a,&$b) { // Javascript code for "Link on Hub" button insert - it is not good, it is temporarily, just for testing purposes $b .= "\n\n"; }