You are here

function theme_heartbeat_buttons in Heartbeat 7

Same name and namespace in other branches
  1. 6.4 heartbeat.module \theme_heartbeat_buttons()

Theme function for messages buttons.

Parameters

$variables: Array of variables available for output.

3 theme calls to theme_heartbeat_buttons()
heartbeat_heartbeat_activity_view in ./heartbeat.module
Implements hook_heartbeat_activity_view().
hook_heartbeat_activity_view in ./heartbeat.api.php
This hook is provided by Heartbeat to prepare content for an activity object.
views_handler_field_heartbeat_buttons::render_buttons in views/views_handler_field_heartbeat_buttons.inc

File

./heartbeat.module, line 1393
Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.

Code

function theme_heartbeat_buttons($variables) {
  $output = '';
  foreach ($variables['heartbeat_activity']->buttons as $button) {
    $output .= $button;
  }
  return $output;
}