You are here

function theme_fbconnect_user_picture_override in Facebook Connect 6

Same name and namespace in other branches
  1. 6.2 fbconnect.pages.inc \theme_fbconnect_user_picture_override()

Make rendering of facebook user picture themeable

1 theme call to theme_fbconnect_user_picture_override()
fbconnect_theme_user_picture_override in ./fbconnect.module
Our replacement for theme('user_picture', ...)

File

./fbconnect.pages.inc, line 299

Code

function theme_fbconnect_user_picture_override($fbuid = '', $account = null, $user_url = '', $size = 'square', $logo = TRUE) {
  if ($logo) {
    $logo = 'true';
  }
  $output = <<<PIC
      <div class="picture">
        <a href="{<span class="php-variable">$user_url</span>}">
         <fb:profile-pic uid="{<span class="php-variable">$fbuid</span>}" linked="false" size="{<span class="php-variable">$size</span>}" facebook-logo="{<span class="php-variable">$logo</span>}"></fb:profile-pic>
        </a>
      </div>
PIC;
  return $output;
}