You are here

function _drupagram_use_oauth in Drupagram 6

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

Detect whether we should use oauth.

2 calls to _drupagram_use_oauth()
drupagram_account_form in ./drupagram.pages.inc
Form to add a Instagram account
drupagram_connect in ./drupagram.inc
Connect to the API using the 'proper' version (Oauth vs. standard)

File

./drupagram.module, line 76

Code

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