mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 19:43:42 +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('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
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('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
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) {
|
||||
|
||||
$uid = $b;
|
||||
|
|
Loading…
Reference in a new issue