]> git.mxchange.org Git - friendica-addons.git/blobdiff - notimeline/notimeline.php
Addon class
[friendica-addons.git] / notimeline / notimeline.php
index dcf9693542f38cd065a8932ad9695bb9b98d0b22..bc06f78bd36e5ae971abf11d0649e05106ee38fd 100644 (file)
@@ -7,20 +7,20 @@
  * 
  *
  */
-
+use Friendica\Core\Addon;
 use Friendica\Core\PConfig;
 
 function notimeline_install() {
 
-       register_hook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
-       register_hook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
+       Addon::registerHook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
+       Addon::registerHook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
 
 }
 
 
 function notimeline_uninstall() {
-       unregister_hook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
-       unregister_hook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
+       Addon::unregisterHook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
+       Addon::unregisterHook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
 
 }