function twitter_auth_account_form_validate in Twitter 6.5
Same name and namespace in other branches
- 7.6 twitter.pages.inc \twitter_auth_account_form_validate()
- 7.5 twitter.pages.inc \twitter_auth_account_form_validate()
Form validation for adding a new Twitter account.
File
- ./
twitter.pages.inc, line 367 - Page callbacks for Twitter module.
Code
function twitter_auth_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/settings/twitter'),
)));
}
}