globaldir submission blocking

pull/56/head^2
friendica 2012-05-21 16:41:44 -07:00
parent d2be106d13
commit 94e6820e85
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -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;