You are here

function follow_link_tooltip in Follow 6

Default tooltip callback function to format a tooltip for a follow link.

The tooltip is the title attribute on the anchor. By default it will display as "Follow us on Twitter" or similar, depending on the network and your settings, but networks can define custom tooltip callbacks to change this text. For instance, an RSS feed or newsletter may want the tooltip to read "Subscribe to our Feed" or "Subscribe to our Newsletter".

Parameters

$title: The translated string title of this link

$variables: An array containing the link object and network data.

Return value

A translated string for the tooltip.

1 string reference to 'follow_link_tooltip'
theme_follow_link in ./follow.module
Theme function to print an individual link.

File

./follow.module, line 288
Allows users to add links to their social network profiles.

Code

function follow_link_tooltip($title, $variables) {
  $link = $variables['link'];

  // No need to run through t() since both of these already have. We do need to
  // strip tags however, since theme_username might have output a link.
  return strip_tags(follow_link_title($link->uid) . ' ' . $title);
}