diff options
author | cash <cash.costello@gmail.com> | 2013-04-19 22:17:01 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-04-19 22:17:01 -0400 |
commit | 5b0b6f28dd224861e216c1a9279a9115b5a5b87a (patch) | |
tree | 25d3342bc2e812e31b6ed0632651f946e20d9e9b /mod/twitter_api/start.php | |
parent | 90ca61146bfd4eabaa6fce7506390f554fc4c44b (diff) | |
download | elgg-5b0b6f28dd224861e216c1a9279a9115b5a5b87a.tar.gz elgg-5b0b6f28dd224861e216c1a9279a9115b5a5b87a.tar.bz2 |
Fixes #5382 admins can turn off posting to twitter
Diffstat (limited to 'mod/twitter_api/start.php')
-rw-r--r-- | mod/twitter_api/start.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/twitter_api/start.php b/mod/twitter_api/start.php index e3e866c1f..7318ac55d 100644 --- a/mod/twitter_api/start.php +++ b/mod/twitter_api/start.php @@ -35,8 +35,10 @@ function twitter_api_init() { // register Walled Garden public pages elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'twitter_api_public_pages'); - // push status messages to twitter - elgg_register_plugin_hook_handler('status', 'user', 'twitter_api_tweet'); + // push wire post messages to twitter + if (elgg_get_plugin_setting('wire_posts', 'twitter_api') == 'yes') { + elgg_register_plugin_hook_handler('status', 'user', 'twitter_api_tweet'); + } $actions = dirname(__FILE__) . '/actions/twitter_api'; elgg_register_action('twitter_api/interstitial_settings', "$actions/interstitial_settings.php", 'logged_in'); |