aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-20 03:32:57 -0800
committerFriendika <info@friendika.com>2011-02-20 03:32:57 -0800
commit93dd2d5682cc4ef40c6de142845266be4b8f8f67 (patch)
treef66394dca53c057a6379accff8c337140dcd0aa0
parentaf0fe4cf422aee9a8fd6b5b5cd422ed0c02e6696 (diff)
downloadvolse-hubzilla-93dd2d5682cc4ef40c6de142845266be4b8f8f67.tar.gz
volse-hubzilla-93dd2d5682cc4ef40c6de142845266be4b8f8f67.tar.bz2
volse-hubzilla-93dd2d5682cc4ef40c6de142845266be4b8f8f67.zip
link to Facebook enable from plugin settings page
-rw-r--r--addon/facebook/facebook.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 119ee2f3e..8975d8e7a 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -112,9 +112,9 @@ function facebook_content(&$a) {
$o .= '<br />';
$o .= '<a href="https://www.facebook.com/dialog/oauth?client_id=' . $appid . '&redirect_uri='
- . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook posting') . '</a><br />';
+ . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook post connector') . '</a><br /><br />';
- $o .= '<a href="' . $a->get_baseurl() . '/facebook/remove' . '">' . t('Remove Facebook posting') . '</a><br />';
+ $o .= '<a href="' . $a->get_baseurl() . '/facebook/remove' . '">' . t('Remove Facebook post connector') . '</a><br />';
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 .= '<h3>' . t('Facebook') . '</h3>';
+ $b .= '<a href="facebook">' . t('Facebook Connector Settings') . '</a><br />';
+
+}
+
function facebook_jot_nets(&$a,&$b) {
if(! local_user())
return;