mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:43:41 +00:00
globaldir submission blocking
This commit is contained in:
parent
d2be106d13
commit
94e6820e85
2 changed files with 6 additions and 0 deletions
BIN
testdrive.tgz
BIN
testdrive.tgz
Binary file not shown.
|
@ -15,6 +15,7 @@ function testdrive_install() {
|
||||||
register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||||
register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||||
register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||||
|
register_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,9 +25,14 @@ function testdrive_uninstall() {
|
||||||
unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||||
unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||||
unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||||
|
unregister_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testdrive_globaldir_update($a,&$b) {
|
||||||
|
$b['url'] = '';
|
||||||
|
}
|
||||||
|
|
||||||
function testdrive_register_account($a,$b) {
|
function testdrive_register_account($a,$b) {
|
||||||
|
|
||||||
$uid = $b;
|
$uid = $b;
|
||||||
|
|
Loading…
Reference in a new issue