function twitter_account_form_validate in Twitter 7.4
Same name and namespace in other branches
- 6.4 twitter.pages.inc \twitter_account_form_validate()
Form validation for adding a new Twitter account.
File
- ./
twitter.pages.inc, line 330 - Page callbacks for Twitter module.
Code
function twitter_account_form_validate($form, &$form_state) {
$key = variable_get('twitter_consumer_key', '');
$secret = variable_get('twitter_consumer_secret', '');
if ($key == '' || $secret == '') {
form_set_error('', t('Please configure your consumer key and secret key at ' . '<a href="!url">Twitter settings</a>.', array(
'!url' => url('admin/config/services/twitter'),
)));
}
}