- unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
- unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
+ Addon::unregisterHook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
+ Addon::unregisterHook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
+ Addon::unregisterHook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
+ Addon::unregisterHook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
+
+}