You are here

function theme_fb_app_user_info in Drupal for Facebook 7.3

Same name and namespace in other branches
  1. 5.2 fb_app.module \theme_fb_app_user_info()
  2. 5 fb_app.module \theme_fb_app_user_info()
  3. 6.3 fb_app.module \theme_fb_app_user_info()
  4. 6.2 fb_app.module \theme_fb_app_user_info()
1 theme call to theme_fb_app_user_info()
fb_app_user in ./fb_app.module
Implements hook_user.

File

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

Code

function theme_fb_app_user_info($fb_app, $info) {
  $output = '';
  if (isset($info['pic_big'])) {
    $output .= '<p><img src="' . $info['pic_big'] . '" /></p>';
  }
  $fb_link = l($info['name'], 'http://www.facebook.com/profile.php', array(
    'query' => '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;
}