You are here

function simple_fb_connect_drupal_goto_alter in Simple FB Connect 7.2

Implemets hook_drupal_goto_alter().

Redirect the user to Facebook logout URL after Drupal logout. The persistent variable is set in hook_user_logout() implementation.

File

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

Code

function simple_fb_connect_drupal_goto_alter(&$path, &$options, &$http_response_code) {
  $fb_logout_url =& drupal_static('simple_fb_connect_fb_logout_url');
  if (empty($path) && $fb_logout_url) {
    $path = $fb_logout_url;
  }
  drupal_static_reset('simple_fb_connect_fb_logout_url');
}