You are here

function twitter_oauth_callback_form in Twitter 7.5

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

Form builder function. In D6 this form was built in response to the oauth return request from Twitter, and the setting of $form['#post'] seems to have caused the form to be validated and processed.

2 string references to 'twitter_oauth_callback_form'
twitter_oauth_callback in ./twitter.pages.inc
Wrapper to call drupal_form_submit() which wasn't required in D6.
twitter_signin_form_alter in twitter_signin/twitter_signin.module
Implements hook_form_alter().

File

./twitter.pages.inc, line 450
Page callbacks for Twitter module.

Code

function twitter_oauth_callback_form($form, &$form_state) {
  $form['#post']['oauth_token'] = $_GET['oauth_token'];
  $form['oauth_token'] = array(
    '#type' => 'hidden',
    '#default_value' => $_GET['oauth_token'],
  );
  return $form;
}