You are here

function theme_heartbeat_flagging in Heartbeat 7

Theme function for flagged users (default is clickable avatar).

1 theme call to theme_heartbeat_flagging()
heartbeat_plugins_modal_flagging_users in modules/heartbeat_plugins/includes/heartbeatflagplugin.inc
CTools ajax callback to show the users who flagged the content.

File

modules/heartbeat_plugins/heartbeat_plugins.module, line 754

Code

function theme_heartbeat_flagging($variables) {
  $newarray = theme('image_style', array(
    'style_name' => 'activity_avatar',
    'path' => $variables['uri'],
    'title' => $variables['name'],
    'attributes' => array(
      'class' => 'avatar',
    ),
  ));
  return '<div class="heartbeat-username">' . l($variables['name'], 'user/' . $variables['uid'], array(
    'html' => TRUE,
  )) . '</div><div class="heartbeat-avatar">' . l($newarray, 'user/' . $variables['uid'], array(
    'html' => TRUE,
  )) . '</div>';
}