You are here

function follow_preprocess_page in Follow 6

Same name and namespace in other branches
  1. 7.2 follow.module \follow_preprocess_page()
  2. 7 follow.module \follow_preprocess_page()

Implementation of hook_preprocess_page().

File

./follow.module, line 107
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(),
    );
    $variables['follow_site'] = theme('follow_links', $args);
  }
}