function janrain_capture_signin in Janrain Registration 7.2
Same name and namespace in other branches
- 7.4 janrain_capture.module \janrain_capture_signin()
- 7 janrain_capture.module \janrain_capture_signin()
- 7.3 janrain_capture.module \janrain_capture_signin()
Menu callback to override user/login and user/register.
2 string references to 'janrain_capture_signin'
- janrain_capture_menu_alter in ./
janrain_capture.module - Implements hook_menu_alter().
- janrain_capture_signin_link in ./
janrain_capture.module - Returns a render array for the 'Register / Sign in' link for Janrain Capture.
File
- ./
janrain_capture.module, line 432 - This module implements authentication endpoints for Janrain Capture.
Code
function janrain_capture_signin() {
$url = janrain_capture_url();
if (isset($_GET['destination'])) {
$destination = $_GET['destination'];
// TODO: we have to unset this here because otherwise drupal_goto will just
// go to the destination, but how can we tell Janrain Capture to redirect to
// this page afterwards?
// ??? drupal_get_destination();
unset($_GET['destination']);
}
drupal_goto($url);
}