function drupagram_oauth_callback_form in Drupagram 7
Same name and namespace in other branches
- 6 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 - @TODO This code should probably be reviewed.
File
- ./
drupagram.pages.inc, line 347 - Drupagram admin page callaback functions.
Code
function drupagram_oauth_callback_form($form, &$form_state) {
if (isset($_GET['code'])) {
$form['#post']['code'] = $_GET['code'];
}
$form['code'] = array(
'#type' => 'hidden',
'#default_value' => $_GET['code'],
);
return $form;
}