You are here

function fb_canvas_fb_app_alter in Drupal for Facebook 7.4

Implements hook_fb_app_alter().

fb_get_app() is looking for an application. Either an app specific to a certain task (if $variable is set), or the "current app".

If the current app is requested on a canvas page, this module is responsible for returning the app details.

File

./fb_canvas.module, line 31

Code

function fb_canvas_fb_app_alter(&$app, &$variable) {
  if (!$variable) {
    if ($fb_app = fb_canvas_app()) {
      $app = $fb_app;
    }
  }
}