function twitter_api_keys in Twitter 7.4
Same name and namespace in other branches
- 6.5 twitter.module \twitter_api_keys()
- 7.6 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_cron in ./
twitter.module - Implements hook_cron().
File
- ./
twitter.module, line 346 - 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));
}