function follow_preprocess_page in Follow 7
Same name and namespace in other branches
- 6 follow.module \follow_preprocess_page()
- 7.2 follow.module \follow_preprocess_page()
Implementation of hook_preprocess_page().
File
- ./
follow.module, line 129 - Allows users to add links to their social network profiles.
Code
function follow_preprocess_page(&$variables) {
// Expose the site follow links as a variable to the page template.
if ($links = follow_links_load()) {
$args = array(
'links' => $links,
'networks' => follow_networks_load(),
'alignment' => variable_get('follow_alignment', 'vertical'),
);
$variables['follow_site'] = theme('follow_links', $args);
}
}