function theme_fb_app_user_info in Drupal for Facebook 6.2
Same name and namespace in other branches
- 5.2 fb_app.module \theme_fb_app_user_info()
- 5 fb_app.module \theme_fb_app_user_info()
- 6.3 fb_app.module \theme_fb_app_user_info()
- 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 264 - Implementation of Drupal for Facebook application.
Code
function theme_fb_app_user_info($fb_app, $info) {
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;
}