diff options
author | Zach Copley <zach@status.net> | 2010-11-18 21:55:43 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-11-18 21:55:43 -0800 |
commit | d9279692093a3dba472af863de21e840aac8c19c (patch) | |
tree | 72fe2de9841e3721e01045312309ce1b3755d2ba /plugins/FacebookBridge | |
parent | cb530566de5501028e6a3e9e725b0860a098f7c9 (diff) |
Automatically make Facebook admin panel available if the FacebookBridge
plugin is installed.
Diffstat (limited to 'plugins/FacebookBridge')
-rw-r--r-- | plugins/FacebookBridge/FacebookBridgePlugin.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/plugins/FacebookBridge/FacebookBridgePlugin.php b/plugins/FacebookBridge/FacebookBridgePlugin.php index 80a31d9cb..8b5d05e98 100644 --- a/plugins/FacebookBridge/FacebookBridgePlugin.php +++ b/plugins/FacebookBridge/FacebookBridgePlugin.php @@ -209,6 +209,19 @@ class FacebookBridgePlugin extends Plugin } /** + * If the plugin's installed, this should be accessible to admins + */ + function onAdminPanelCheck($name, &$isOK) + { + if ($name == 'facebook') { + $isOK = true; + return false; + } + + return true; + } + + /** * Add a Facebook tab to the admin panels * * @param Widget $nav Admin panel nav @@ -483,7 +496,7 @@ ENDOFSCRIPT; { $client = new Facebookclient($notice); $client->streamRemove(); - + return true; } |