You are here

function simple_fb_connect_get_post_login_url in Simple FB Connect 7.2

Returns the path were user should be redirected after a successful FB login.

Return value

Path where the user should be redirected after FB login.

1 call to simple_fb_connect_get_post_login_url()
simple_fb_connect_return_from_fb in ./simple_fb_connect.module
Page callback for /user/simple-fb-connect/return.

File

./simple_fb_connect.module, line 954
Simple Facebook Login Module for Drupal Sites.

Code

function simple_fb_connect_get_post_login_url() {
  $post_login_url = variable_get('simple_fb_connect_post_login_url', 'user');

  // If we have stored the destination to $_SESSION, use that instead.
  if (isset($_SESSION['simple_fb_connect']['post_login_url'])) {
    $post_login_url = $_SESSION['simple_fb_connect']['post_login_url'];
  }
  return $post_login_url;
}