You are here

function fb_app_token_values in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 5.2 fb_app.module \fb_app_token_values()
  2. 5 fb_app.module \fb_app_token_values()
  3. 6.3 fb_app.module \fb_app_token_values()
  4. 6.2 fb_app.module \fb_app_token_values()

File

./fb_app.module, line 282
Implementation of Drupal for Facebook application.

Code

function fb_app_token_values($type = 'all', $object = NULL) {
  $values = array();
  if ($type == 'fb_app' && $object) {
    $fb_app = $object;
    $values['fb-app-label'] = $fb_app->label;
    $values['fb-app-url'] = fb_protocol() . '://apps.facebook.com/' . $fb_app->canvas;
  }
  return $values;
}