| 1 |
<?php |
<?php |
| 2 |
// $Id: twitter.pages.inc,v 1.2.2.7 2009/04/08 22:13:35 eaton Exp $ |
// $Id: twitter.pages.inc,v 1.2.2.8 2009/07/02 13:23:44 eaton Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* |
* |
| 257 |
module_load_include('inc', 'twitter'); |
module_load_include('inc', 'twitter'); |
| 258 |
|
|
| 259 |
if (!empty($form_state['values']['screen_name'])) { |
if (!empty($form_state['values']['screen_name'])) { |
| 260 |
|
// if the password wasn't empty either get the account info |
| 261 |
|
// so we can figure out if the account is protected |
| 262 |
|
if (!empty($form_state['values']['password'])) { |
| 263 |
|
$account = twitter_fetch_account_info($form_state['values']['screen_name'], $form_state['values']['password']); |
| 264 |
|
if ($account['protected']) { |
| 265 |
|
$form_state['values']['protected'] = TRUE; |
| 266 |
|
} |
| 267 |
|
} |
| 268 |
twitter_user_save($form_state['values'], TRUE); |
twitter_user_save($form_state['values'], TRUE); |
| 269 |
} |
} |
| 270 |
} |
} |