function _follow_block_content in Follow 7.2
Same name and namespace in other branches
- 5 follow.module \_follow_block_content()
- 6 follow.module \_follow_block_content()
- 7 follow.module \_follow_block_content()
Helper function to build the block content display.
Parameters
string $alignment: The alignment of the icons, vertical or horizontal.
string $style: The style of the icons, small, large, etc.
$uid: The uid of the user account. Defaults to the site form, $uid = 0.
Return value
array A renderable array of follow links.
1 call to _follow_block_content()
- follow_block_view in ./
follow.module - Implements hook_block_view().
File
- ./
follow.module, line 332
Code
function _follow_block_content($type, $uid = 0) {
$element = array();
if ($links = follow_links_load($uid)) {
$element = _follow_links_element($links, follow_networks_load($uid), $type);
}
return $element;
}