You are here

function fb_protocol in Drupal for Facebook 6.3

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

Protocol (http or https) of the current request.

7 calls to fb_protocol()
fb_admin_page in ./fb.admin.inc
Drupal page callback.
fb_app_token_values in ./fb_app.module
fb_canvas_fix_url in ./fb_canvas.module
Convert a local fully qualified path to a facebook app path. This needs to be used internally, to fix drupal_gotos upon form submission. Third party modules should not need to call this.
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.

... See full list

File

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

Code

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