You are here

function _twitter_use_oauth in Twitter 7.3

Same name and namespace in other branches
  1. 6.3 twitter.module \_twitter_use_oauth()
  2. 6.4 twitter.module \_twitter_use_oauth()

Detect whether we should use oauth. This can probably just go now :)

5 calls to _twitter_use_oauth()
twitter_account_form in ./twitter.pages.inc
Form to add a Twitter account
twitter_actions_set_status_action_validate in twitter_actions/twitter_actions.module
Verifies if Oauth module has been setup and also checks the Twitter authentication against the provided screen name.
twitter_connect in ./twitter.inc
Connect to the API using the 'proper' version (Oauth vs. standard)
twitter_signin_block_view in twitter_signin/twitter_signin.module
Implements hook_block_view().
twitter_signin_form_alter in twitter_signin/twitter_signin.module
Implements hook_form_alter().

File

./twitter.module, line 276
Provides API integration with the Twitter microblogging service.

Code

function _twitter_use_oauth() {
  return module_exists('oauth_common') && variable_get('twitter_consumer_key', '') && variable_get('twitter_consumer_secret', '');
}