- Addon::registerHook('network_mod_init' , 'addon/curweather/curweather.php', 'curweather_network_mod_init');
- Addon::registerHook('addon_settings' , 'addon/curweather/curweather.php', 'curweather_addon_settings');
- Addon::registerHook('addon_settings_post', 'addon/curweather/curweather.php', 'curweather_addon_settings_post');
-}
-
-function curweather_uninstall()
-{
- Addon::unregisterHook('network_mod_init' , 'addon/curweather/curweather.php', 'curweather_network_mod_init');
- Addon::unregisterHook('addon_settings' , 'addon/curweather/curweather.php', 'curweather_addon_settings');
- Addon::unregisterHook('addon_settings_post', 'addon/curweather/curweather.php', 'curweather_addon_settings_post');
+ Hook::register('network_mod_init' , 'addon/curweather/curweather.php', 'curweather_network_mod_init');
+ Hook::register('addon_settings' , 'addon/curweather/curweather.php', 'curweather_addon_settings');
+ Hook::register('addon_settings_post', 'addon/curweather/curweather.php', 'curweather_addon_settings_post');