function twitter_user_make_global_submit in Twitter 6.4
Same name and namespace in other branches
- 6.3 twitter.pages.inc \twitter_user_make_global_submit()
- 7.3 twitter.pages.inc \twitter_user_make_global_submit()
- 7.4 twitter.pages.inc \twitter_user_make_global_submit()
File
- ./
twitter.pages.inc, line 282 - Page callbacks for Twitter module.
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';
}