You are here

function theme_fb_app_user_info in Drupal for Facebook 5.2

Same name and namespace in other branches
  1. 5 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()
1 theme call to theme_fb_app_user_info()
fb_app_user in ./fb_app.module
Implementation of hook_user.

File

./fb_app.module, line 453
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;
}