function theme_follow_link in Follow 7.2
Same name and namespace in other branches
- 5 follow.module \theme_follow_link()
- 6 follow.module \theme_follow_link()
- 7 follow.module \theme_follow_link()
Theme function to print an individual link.
Parameters
$link: A follow link object.
$title: The translated title of the social network.
1 theme call to theme_follow_link()
- _follow_links_element in ./
follow.inc - Helper function to build a follow links element.
File
- ./
follow.module, line 392
Code
function theme_follow_link($variables) {
$link = $variables['link'];
$title = $variables['title'];
$classes = array();
$classes[] = 'follow-link';
$classes[] = "follow-link-{$link->name}";
$classes[] = $link->uid ? 'follow-link-user' : 'follow-link-site';
$attributes = array(
'class' => $classes,
'title' => follow_link_title($link->uid) . ' ' . $title,
);
$link->options['attributes'] = $attributes;
return l($title, $link->path, $link->options) . "\n";
}