You are here

class fb_views_handler_profile_pic in Drupal for Facebook 6.3

Same name and namespace in other branches
  1. 6.2 fb_views/fb_views_handler_profile_pic.inc \fb_views_handler_profile_pic
  2. 7.3 fb_views/fb_views_handler_profile_pic.inc \fb_views_handler_profile_pic

@file Render fbml tag for user's picture.

Hierarchy

Expanded class hierarchy of fb_views_handler_profile_pic

1 string reference to 'fb_views_handler_profile_pic'
fb_views_views_data in fb_views/fb_views.module

File

fb_views/fb_views_handler_profile_pic.inc, line 7
Render fbml tag for user's picture.

View source
class fb_views_handler_profile_pic extends views_handler_field {
  function construct() {
    parent::construct();
    $this->additional_fields['fbu'] = 'fbu';
  }
  function render($values) {
    if ($fbu = $values->{$this->field_alias}) {
      return '<div class="picture"><fb:profile-pic uid="' . $fbu . '" linked="yes" size="thumb" /></div>';
    }
  }

}

Members