function theme_block_fbconnect in Facebook Connect 5
Return fbconnect blocks content
Parameters
Array $data:
1 theme call to theme_block_fbconnect()
- fbconnect_block_render in ./
fbconnect.module - Render data for fbconnect block
File
- ./
fbconnect.module, line 1083 - This module allows site visitors to connect and register with facebook account
Code
function theme_block_fbconnect($data, $account) {
if (!empty($data)) {
$output = '<div class="title">' . t('Welcome @username.', array(
'@username' => $account->name,
)) . '</div>';
$output .= $data['friend_link'];
if (!empty($data['friend_list'])) {
$title = t('My friends');
$output .= theme('render_friends_list_fbconnect', $data['friend_list'], $title);
}
return $output;
}
}