You are here

function _follow_block_content in Follow 7

Same name and namespace in other branches
  1. 5 follow.module \_follow_block_content()
  2. 6 follow.module \_follow_block_content()
  3. 7.2 follow.module \_follow_block_content()

Helper function to build the block content display.

Parameters

$uid: The uid of the user account. Defaults to the site form, $uid = 0.

1 call to _follow_block_content()
follow_block_view in ./follow.module
Implementation of hook_block_view().

File

./follow.module, line 284
Allows users to add links to their social network profiles.

Code

function _follow_block_content($uid = 0) {
  $output = '';
  if ($links = follow_links_load($uid)) {
    $output = theme('follow_links', array(
      'links' => $links,
      'networks' => follow_networks_load($uid),
      'alignment' => variable_get('follow_alignment', 'vertical'),
    ));
  }
  return $output;
}