function twitter_account_list_form_submit in Twitter 6.3
Same name and namespace in other branches
- 6.5 twitter.pages.inc \twitter_account_list_form_submit()
- 6.2 twitter.pages.inc \twitter_account_list_form_submit()
- 6.4 twitter.pages.inc \twitter_account_list_form_submit()
- 7.6 twitter.pages.inc \twitter_account_list_form_submit()
- 7.3 twitter.pages.inc \twitter_account_list_form_submit()
- 7.4 twitter.pages.inc \twitter_account_list_form_submit()
- 7.5 twitter.pages.inc \twitter_account_list_form_submit()
File
- ./
twitter.pages.inc, line 205
Code
function twitter_account_list_form_submit($form, &$form_state) {
module_load_include('inc', 'twitter');
$accounts = $form_state['values']['accounts'];
foreach ($accounts as $account) {
if (empty($account['delete'])) {
twitter_account_save($account);
drupal_set_message(t('The Twitter account settings were updated.'));
}
else {
twitter_user_delete($account['id']);
drupal_set_message(t('The Twitter account was deleted.'));
}
}
}