From 93dd2d5682cc4ef40c6de142845266be4b8f8f67 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 20 Feb 2011 03:32:57 -0800 Subject: [PATCH] link to Facebook enable from plugin settings page --- addon/facebook/facebook.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php index 119ee2f3e5..8975d8e7a8 100644 --- a/addon/facebook/facebook.php +++ b/addon/facebook/facebook.php @@ -112,9 +112,9 @@ function facebook_content(&$a) { $o .= '
'; $o .= '' . t('Install Facebook posting') . '
'; + . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook post connector') . '

'; - $o .= '' . t('Remove Facebook posting') . '
'; + $o .= '' . t('Remove Facebook post connector') . '
'; return $o; @@ -123,15 +123,24 @@ function facebook_content(&$a) { function facebook_install() { register_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook'); register_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets'); + register_hook('plugin_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings'); } function facebook_uninstall() { unregister_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook'); unregister_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets'); + unregister_hook('plugin_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings'); } +function facebook_plugin_settings(&$a,&$b) { + + $b .= '

' . t('Facebook') . '

'; + $b .= '' . t('Facebook Connector Settings') . '
'; + +} + function facebook_jot_nets(&$a,&$b) { if(! local_user()) return;