function twitter_api_keys in Twitter 7.5
Same name and namespace in other branches
- 6.5 twitter.module \twitter_api_keys()
 - 7.6 twitter.module \twitter_api_keys()
 - 7.4 twitter.module \twitter_api_keys()
 
Checks if the Twitter Application keys are set.
Return value
boolean TRUE if both the Twitter Application key and secret are set.
1 call to twitter_api_keys()
- twitter_user_settings in ./
twitter.pages.inc  - Form builder that lists Twitter accounts.
 
File
- ./
twitter.module, line 615  - Provides API integration with the Twitter microblogging service.
 
Code
function twitter_api_keys() {
  $key = variable_get('twitter_consumer_key');
  $secret = variable_get('twitter_consumer_secret');
  return !(empty($key) && empty($secret));
}