- Addon::registerHook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
- Addon::registerHook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
- logger("installed widgets");
-}
-function widgets_uninstall() {
- Addon::unregisterHook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
- Addon::unregisterHook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
+ Hook::register('addon_settings', 'addon/widgets/widgets.php', 'widgets_settings');
+ Hook::register('addon_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
+ Logger::log("installed widgets");