You are here

function twitter_user_make_global_submit in Twitter 6.3

Same name and namespace in other branches
  1. 6.4 twitter.pages.inc \twitter_user_make_global_submit()
  2. 7.3 twitter.pages.inc \twitter_user_make_global_submit()
  3. 7.4 twitter.pages.inc \twitter_user_make_global_submit()

File

./twitter.pages.inc, line 249

Code

function twitter_user_make_global_submit($form, &$form_state) {
  db_query("UPDATE {twitter_account} SET is_global = (1 - is_global) WHERE twitter_uid = %d", $form_state['values']['twitter_uid']);
  $form_state['redirect'] = 'user/' . $form_state['values']['uid'] . '/edit/twitter';
}