You are here

function twitter_account_list_form_submit in Twitter 6.2

Same name and namespace in other branches
  1. 6.5 twitter.pages.inc \twitter_account_list_form_submit()
  2. 6.3 twitter.pages.inc \twitter_account_list_form_submit()
  3. 6.4 twitter.pages.inc \twitter_account_list_form_submit()
  4. 7.6 twitter.pages.inc \twitter_account_list_form_submit()
  5. 7.3 twitter.pages.inc \twitter_account_list_form_submit()
  6. 7.4 twitter.pages.inc \twitter_account_list_form_submit()
  7. 7.5 twitter.pages.inc \twitter_account_list_form_submit()

File

./twitter.pages.inc, line 186

Code

function twitter_account_list_form_submit($form, &$form_state) {
  $accounts = $form_state['values']['accounts'];
  foreach ($accounts as $account) {
    if (empty($account['delete'])) {
      twitter_user_save($account);
    }
    else {
      twitter_user_delete($account['uid'], $account['screen_name']);
    }
  }
}