]> git.mxchange.org Git - friendica-addons.git/commitdiff
globaldir submission blocking
authorfriendica <info@friendica.com>
Mon, 21 May 2012 23:41:44 +0000 (16:41 -0700)
committerfriendica <info@friendica.com>
Mon, 21 May 2012 23:41:44 +0000 (16:41 -0700)
testdrive.tgz
testdrive/testdrive.php

index 3369481c589e4399200e2afd0e3ae89dd24dd4f4..dac0ff780d0b4d5ee77b49796e91529a00f686bb 100755 (executable)
Binary files a/testdrive.tgz and b/testdrive.tgz differ
index 909f43380a3a15206b2dd7be6f41d8ddb2138173..968aa8341fd8fea7beb12d85280ef28fe414d570 100644 (file)
@@ -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;