You are here

function oa_widgets_user_profile_render in Open Atrium Core 7.2

Render callback for the panel.

1 string reference to 'oa_widgets_user_profile_render'
oa_widgets_user_profile.inc in modules/oa_widgets/plugins/content_types/oa_widgets_user_profile.inc

File

modules/oa_widgets/plugins/content_types/oa_widgets_user_profile.inc, line 21

Code

function oa_widgets_user_profile_render($subtype, $conf, $args, $context = NULL) {
  $block = new stdClass();
  $block->title = '';
  $vars = array();
  template_preprocess_oa_user_badge($vars);
  global $user;
  if ($user->uid) {
    $user = user_load($user->uid);
    $vars = oa_users_build_user_details($user, 'oa_medium_thumbnail');
    $block->content = theme('oa_widgets_user_profile', $vars);
  }
  return $block;
}