cal: added settings functions

This commit is contained in:
Tobias Diekershoff 2013-06-15 11:51:19 +02:00
parent 6ddd3100a7
commit c9880c2372

View file

@ -10,9 +10,13 @@
function cal_install() 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() 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() function cal_module()
{ {
@ -37,4 +41,15 @@ function cal_content()
return $o; return $o;
} }
function cal_addon_settings_post ( &$a, &$b )
{
if (! local_user())
return;
}
function cal_addon_settings ( &$a, &$s )
{
if (! local_user())
return;
}
?> ?>