You are here

function ShareMessage::buildAdditionalAttributes in Share Message 7

Function that adds icon style with addThis:attributes (url, title, description) as part of addThis widget.

1 call to ShareMessage::buildAdditionalAttributes()
ShareMessage::buildContent in includes/sharemessage.entity.inc
Overrides Entity::buildContent().

File

includes/sharemessage.entity.inc, line 267
Definition of ShareMessage entity class.

Class

ShareMessage

Code

function buildAdditionalAttributes($context) {
  $attributes = $this
    ->buildAttributes();
  $attributes['addthis:url'] = $this
    ->getUrl($context);
  $attributes['addthis:title'] = $this
    ->getTokenizedField('sharemessage_title', $context);
  $attributes['addthis:description'] = $this
    ->getTokenizedField('sharemessage_long', $context);
  return $attributes;
}