]> git.mxchange.org Git - friendica-addons.git/commitdiff
cal: added settings functions
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 15 Jun 2013 09:51:19 +0000 (11:51 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 15 Jun 2013 09:51:19 +0000 (11:51 +0200)
cal/cal.php

index 302549bb6ece7b26252ad0e89717fab77fbc2dee..f382396819ac6189cf8313fe2941a42445d6c0eb 100644 (file)
 
 function cal_install()
 {
+    register_hook('plugin_settings', 'addon/cal/cal.php', 'cal_addon_settings');
+    register_hook('plugin_settings_post', 'addon/cal/cal.php', 'cal_addon_settings_post');
 }
 function cal_uninstall()
 {
+    unregister_hook('plugin_settings', 'addon/cal/cal.php', 'cal_addon_settings');
+    unregister_hook('plugin_settings_post', 'addon/cal/cal.php', 'cal_addon_settings_post');
 }
 function cal_module()
 {
@@ -37,4 +41,15 @@ function cal_content()
     return $o;
 }
 
+function cal_addon_settings_post ( &$a, &$b  )
+{
+    if (! local_user())
+       return;
+}
+function cal_addon_settings ( &$a, &$s  )
+{
+    if (! local_user())
+       return;
+}
+
 ?>