You are here

function theme_fb_app_user_info in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_app.module \theme_fb_app_user_info()
  2. 6.3 fb_app.module \theme_fb_app_user_info()
  3. 6.2 fb_app.module \theme_fb_app_user_info()
  4. 7.3 fb_app.module \theme_fb_app_user_info()
2 theme calls to theme_fb_app_user_info()
fb_app_user in ./fb_app.module
Implementation of hook_user.
fb_user_sync_cb in ./fb_user.module
The sync callback is invoked first on a canvas page, in which case we require the user to add the application. Later the user will be redirected to this callback on the locale server, with an token that allows us to write the necessary row to the…

File

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

Code

function theme_fb_app_user_info($fb_app, $info) {
  if ($info['pic_big']) {
    $output .= '<p><img src="' . $info['pic_big'] . '" /></p>';
  }
  $fb_link = l($info['name'], 'http://www.facebook.com/profile.php', NULL, 'id=' . $info['uid']);
  if ($info['is_app_user']) {
    $output .= '<p>' . t('!fb_link uses %title', array(
      '!fb_link' => $fb_link,
      '%title' => $fb_app->title,
    )) . '</p>';
  }
  else {
    $output .= '<p>' . t('!fb_link does not use %title', array(
      '!fb_link' => $fb_link,
      '%title' => $fb_app->title,
    )) . '</p>';
  }
  return $output;
}