You are here

function janrain_capture_signin in Janrain Registration 7

Same name and namespace in other branches
  1. 7.4 janrain_capture.module \janrain_capture_signin()
  2. 7.2 janrain_capture.module \janrain_capture_signin()
  3. 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 311
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?
    unset($_GET['destination']);
  }
  drupal_goto($url);
}