function twitter_add_account_validate in Twitter 6.2
File
- ./
twitter.pages.inc, line 235
Code
function twitter_add_account_validate($form, &$form_state) {
module_load_include('inc', 'twitter');
$verify = FALSE;
$pass = $form_state['values']['password'];
$name = $form_state['values']['screen_name'];
if (!empty($pass)) {
$verify = TRUE;
}
if ($verify) {
$valid = twitter_authenticate($name, $pass);
if (!$valid) {
form_set_error("password", t('Twitter authentication failed. Please check your account name and try again.'));
}
}
}