function theme_follow_links in Follow 6
Same name and namespace in other branches
- 5 follow.module \theme_follow_links()
- 7.2 follow.module \theme_follow_links()
- 7 follow.module \theme_follow_links()
Theme function to output a list of links.
Parameters
$variables: An array of follow link objects.
$networks: An array of network names, keys are machine names, values are visible titles.
2 theme calls to theme_follow_links()
- follow_preprocess_page in ./
follow.module - Implementation of hook_preprocess_page().
- _follow_block_content in ./
follow.module - Helper function to build the block content display.
File
- ./
follow.module, line 338 - Allows users to add links to their social network profiles.
Code
function theme_follow_links($variables) {
$links = $variables['links'];
$networks = $variables['networks'];
$output = '<div class="follow-links clearfix">';
foreach ($links as $link) {
$output .= theme('follow_link', array(
'link' => $link,
'network' => $networks[$link->name],
));
}
$output .= '</div>';
return $output;
}