add linkenabled config parameter (for other addons)
This commit is contained in:
parent
4b200a093e
commit
b220e2b7a6
|
@ -15,11 +15,13 @@ function link_load() {
|
||||||
Route::register('addon/link/Mod_Link.php','link');
|
Route::register('addon/link/Mod_Link.php','link');
|
||||||
if (get_config('link','linkonhub'))
|
if (get_config('link','linkonhub'))
|
||||||
register_hook('page_end', 'addon/link/link.php', 'link_active');
|
register_hook('page_end', 'addon/link/link.php', 'link_active');
|
||||||
|
set_config('link','linkenabled',1);
|
||||||
}
|
}
|
||||||
|
|
||||||
function link_unload() {
|
function link_unload() {
|
||||||
Route::unregister('addon/link/Mod_Link.php','link');
|
Route::unregister('addon/link/Mod_Link.php','link');
|
||||||
unregister_hook('page_end', 'addon/link/link.php', 'link_active');
|
unregister_hook('page_end', 'addon/link/link.php', 'link_active');
|
||||||
|
del_config('link','linkenabled');
|
||||||
}
|
}
|
||||||
|
|
||||||
function link_plugin_admin(&$a,&$o) {
|
function link_plugin_admin(&$a,&$o) {
|
||||||
|
|
Loading…
Reference in New Issue