You are here

function fb_protocol in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 6.3 fb.module \fb_protocol()

Protocol (http or https) of the current request.

6 calls to fb_protocol()
fb_admin_page in ./fb.admin.inc
Drupal page callback.
fb_app_token_values in ./fb_app.module
fb_canvas_url_outbound_alter in ./fb_canvas.module
Implements hook_url_outbound_alter().
fb_form_multi_add_invite_form in ./fb_form.module
Create a form allowing the user to invite friends to add the app.
fb_init in ./fb.module
Implements hook_init().

... See full list

File

./fb.module, line 2047
This is the core required module of Drupal for Facebook.

Code

function fb_protocol() {
  return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
}