function follow_preprocess_page in Follow 7.2
Same name and namespace in other branches
- 6 follow.module \follow_preprocess_page()
- 7 follow.module \follow_preprocess_page()
Implements hook_preprocess_page().
File
- ./follow.module, line 133 
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_site_alignment', 'vertical'),
      'type' => 'site',
    );
    $variables['follow_site'] = theme('follow_links', $args);
  }
}