function drupagram_oauth_callback_form in Drupagram 6
Same name and namespace in other branches
- 7 drupagram.pages.inc \drupagram_oauth_callback_form()
Form builder function. In D6 this form was built in response to the oauth return request from Instagram, and the setting of $form['#post'] seems to have caused the form to be validated and processed.
1 string reference to 'drupagram_oauth_callback_form'
- drupagram_oauth_callback in ./
drupagram.pages.inc - Wrapper to call drupal_form_submit() which wasn't required in D6.
File
- ./
drupagram.pages.inc, line 233 - Provieds drupagram forms.
Code
function drupagram_oauth_callback_form() {
if (isset($_GET['code'])) {
$form['#post']['code'] = $_GET['code'];
}
$form['code'] = array(
'#type' => 'hidden',
'#default_value' => $_GET['code'],
);
return $form;
}