function twitter_api_keys in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.module \twitter_api_keys()
- 7.4 twitter.module \twitter_api_keys()
- 7.5 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 529 - Provides API integration with the Twitter microblogging service.
Code
function twitter_api_keys() {
$key = variable_get('twitter_consumer_key', NULL);
$secret = variable_get('twitter_consumer_secret', NULL);
return !(empty($key) && empty($secret));
}