diff options
author | cash <cash.costello@gmail.com> | 2011-09-17 11:27:12 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-09-17 11:27:12 -0400 |
commit | 65158f8d0796108ef5534a91b6ee34bf55d29223 (patch) | |
tree | 4976ae43eba5fdea7e5fc7ae025deacba179517d /mod/twitter_api/views/default/usersettings | |
parent | f35af8ff5df99baf4beece44fb92cc3dcdc3cd15 (diff) | |
download | elgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.gz elgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.bz2 |
Fixes #2990 updated the bundled plugins to use the new plugin/user settings structure
Diffstat (limited to 'mod/twitter_api/views/default/usersettings')
-rw-r--r-- | mod/twitter_api/views/default/usersettings/twitter_api/edit.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/mod/twitter_api/views/default/usersettings/twitter_api/edit.php b/mod/twitter_api/views/default/usersettings/twitter_api/edit.php deleted file mode 100644 index acb8d9af5..000000000 --- a/mod/twitter_api/views/default/usersettings/twitter_api/edit.php +++ /dev/null @@ -1,29 +0,0 @@ -<?php -/** - * User settings for Twitter API - */ - -$user = elgg_get_logged_in_user_entity(); -$user_guid = $user->getGUID(); -$twitter_name = get_plugin_usersetting('twitter_name', $user_guid, 'twitter_api'); -$access_key = get_plugin_usersetting('access_key', $user_guid, 'twitter_api'); -$access_secret = get_plugin_usersetting('access_secret', $user_guid, 'twitter_api'); - -$site_name = elgg_get_site_entity()->name; -echo '<div>' . elgg_echo('twitter_api:usersettings:description', array($site_name)) . '</div>'; - -if (!$access_key || !$access_secret) { - // send user off to validate account - $request_link = twitter_api_get_authorize_url(null, false); - echo '<div>' . elgg_echo('twitter_api:usersettings:request', array($request_link, $site_name)) . '</div>'; -} else { - // if this user logged in through twitter and never set up an email address, don't - // let them disassociate their account. - if ($user->email) { - $url = elgg_get_site_url() . "twitter_api/revoke"; - echo '<div class="twitter_anywhere">' . elgg_echo('twitter_api:usersettings:authorized', array($site_name, $twitter_name)) . '</div>'; - echo '<div>' . sprintf(elgg_echo('twitter_api:usersettings:revoke'), $url) . '</div>'; - } else { - echo elgg_echo('twitter_api:usersettings:cannot_revoke', array(elgg_normalize_url('twitter_api/interstitial'))); - } -} |