X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=fbsync%2Ffbsync.php;h=51d2747f93d8640570032d8eda81f575c796b412;hb=e60a9e61fd25726578ee97656d56963c728ad5a5;hp=ee83765fb68a2d5947817180f0bdaf2fcf372ff1;hpb=206f41ecf9925199f115cacda782927d031042b4;p=friendica-addons.git diff --git a/fbsync/fbsync.php b/fbsync/fbsync.php index ee83765f..51d2747f 100644 --- a/fbsync/fbsync.php +++ b/fbsync/fbsync.php @@ -2,7 +2,7 @@ /** * Name: Facebook Sync * Description: Synchronizes the Facebook Newsfeed - * Version: 0.0.1 alpha + * Version: 1.0 * Author: Michael Vogel */ @@ -26,6 +26,7 @@ function fbsync_install() { register_hook('connector_settings_post', 'addon/fbsync/fbsync.php', 'fbsync_settings_post'); register_hook('cron', 'addon/fbsync/fbsync.php', 'fbsync_cron'); register_hook('follow', 'addon/fbsync/fbsync.php', 'fbsync_follow'); + register_hook('expire', 'addon/fbsync/fbsync.php', 'fbsync_expire'); } function fbsync_uninstall() { @@ -33,6 +34,7 @@ function fbsync_uninstall() { unregister_hook('connector_settings_post', 'addon/fbsync/fbsync.php', 'fbsync_settings_post'); unregister_hook('cron', 'addon/fbsync/fbsync.php', 'fbsync_cron'); unregister_hook('follow', 'addon/fbsync/fbsync.php', 'fbsync_follow'); + unregister_hook('expire', 'addon/fbsync/fbsync.php', 'fbsync_expire'); } function fbsync_follow($a, &$contact) { @@ -100,6 +102,9 @@ function fbsync_follow($a, &$contact) { function fbsync_settings(&$a,&$s) { + // Settings are done inside the fbpost addon + return; + if(! local_user()) return; @@ -120,11 +125,11 @@ function fbsync_settings(&$a,&$s) { /* Add some HTML to the existing form */ $s .= ''; - $s .= '

' . t('Facebook Import Settings') . '

'; + $s .= '

'. t('Facebook Import').'

'; $s .= '
'; $s .= '