You are here

function fb_app_token_values in Drupal for Facebook 5.2

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

File

./fb_app.module, line 478
Defines a custom node type that stores a facebook application configuration.

Code

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