You are here

function theme_heartbeat_buttons in Heartbeat 6.4

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

Theme function for messages buttons

2 theme calls to theme_heartbeat_buttons()
theme_heartbeat_messages in ./heartbeat.module
Theme function for messages
_heartbeat_render_view in views/heartbeat_views.module
Helper function to (re-)render the messages from views.

File

./heartbeat.module, line 936

Code

function theme_heartbeat_buttons($message) {
  global $user;
  $buttons = array();
  if ($message->delete_access || $message->actor_access && $message->uid == $user->uid) {
    $buttons[] = $message
      ->delete_button();
  }
  return implode('', $buttons);
}