You are here

function _drupagram_use_oauth in Drupagram 7

Same name and namespace in other branches
  1. 6 drupagram.module \_drupagram_use_oauth()

Detect whether we should use oauth.

3 calls to _drupagram_use_oauth()
drupagram_account_form in ./drupagram.pages.inc
Form to add a Instagram account
drupagram_actions_set_status_action_validate in drupagram_actions/drupagram_actions.module
Verifies if Oauth module has been setup and also checks the Instagram authentication against the provided screen name.
drupagram_connect in ./drupagram.inc
Connect to the API using the 'proper' version (Oauth vs. standard)

File

./drupagram.module, line 313
Provides API integration with the Instagram microblogging service.

Code

function _drupagram_use_oauth() {
  return module_exists('oauth_common') && variable_get('drupagram_client_id', '') && variable_get('drupagram_client_secret', '');
}